예제 #1
0
        public void fillAddress()
        {
            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
            Addressline1.Clear();
            Addressline1.SendKeys(ExcelOperation.GetData[9]);

            SuburbText.Clear();
            AddressLine2.Clear();
            AddressLine2.SendKeys(ExcelOperation.GetData[10]);
            SuburbText.SendKeys(ExcelOperation.GetData[11]);

            State.Click();
            PostCode.Clear();
            PostCode.SendKeys(ExcelOperation.GetData[12]);
            PostalAddressLine1.Clear();

            PostalAddressLine1.SendKeys(ExcelOperation.GetData[13]);
            PostalAddressLine2.Clear();
            PostalAddressLine2.SendKeys(ExcelOperation.GetData[14]);
            PostalSuburbText.Clear();
            PostalSuburbText.SendKeys(ExcelOperation.GetData[15]);

            PostalStateCombo.Click();
            PostalPostCode.Clear();
            PostalPostCode.SendKeys(ExcelOperation.GetData[16]);
            GenericHelper.AllScreenShot(driver);
            Nextbutton.Click();
        }
예제 #2
0
        public void AddLocation(string shortName, string locationName, string addressLine1, string addressLine2,
                                string city, string state, string zip)
        {
            GotoPracticeSettings();

            Location.Click();

            SearchGrid("celebration", 1);

            Thread.Sleep(1000);

            WaitForElementVisible <Locations>(30);

            Add.Click();

            ShortName.SendKeys(shortName);
            LocationName.SendKeys(locationName);
            AddressLine1.SendKeys(addressLine1);
            AddressLine2.SendKeys(addressLine2);
            City.SendKeys(city);
            State.Select(state);
            Zip.SendKeys(zip);

            Save.Click();

            Assert.AreEqual("Location saved successfully", Toastr.Text);
        }