コード例 #1
0
 public void PopulatePageAndSubmit()
 {
     FirstName.SendKeys("Miller");
     LastName.SendKeys("John");
     UserEmail.SendKeys("*****@*****.**");
     Gender.Click();
     MobileNumber.SendKeys("0751123456");
     DateOfBirth.Click();
     Month.Click();
     Year.Click();
     Day.Click();
     Subjects.SendKeys("Test subjects");
     Thread.Sleep(2000);
     Hobbies.Click();
     ((IJavaScriptExecutor)_driver).ExecuteScript("arguments[0].scrollIntoView(true);", Picture);
     //Thread.Sleep(5000);
     //Picture.Click();
     CurrentAddress.SendKeys("Str. 13 Dec");
     Thread.Sleep(2000);
     StateDropDown.Click();
     StateOption.Click();
     CityDropDown.Click();
     CityOption.Click();
     Submit.Click();
 }
コード例 #2
0
 public AirportTaxisPage StepEnterMobileNumber(string mobileNumber)
 {
     MobileNumber.Clear();
     Thread.Sleep(1000);
     MobileNumber.SendKeys(mobileNumber);
     Thread.Sleep(2000);
     return(this);
 }
コード例 #3
0
        public void FillFormOnlyRequiredAndSubmit()
        {
            //FirstName.FindElement(By.Id("firstName"));
            FirstName.SendKeys("Farrukh");

            //LastName.FindElement(By.Id("firstName"));
            LastName.SendKeys("Khan");

            //IWebElement singleRadioButton = driver.FindElement(By.Id("gender-radio-1"));
            ((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].checked = true;", GenderMale);

            MobileNumber.SendKeys("3132417761");
            //IWebElement submitBtn = driver.FindElement(By.Id("submit"));
            ((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].click();", SubmitButton);


            string str = SuccessfullSubmissionMessage.Text;
        }
コード例 #4
0
 public void EnterMobileNumber()
 {
     MobileNumber.SendKeys("160388934095");
 }
コード例 #5
0
 public void Type_MobileNumber()
 {
     MobileNumber.SendKeys(Parameters.GetData <string>("mobile"));
 }