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();
 }
 public void PopulateAndSubmit()
 {
     UserName.SendKeys("Miller John");
     UserEmail.SendKeys("*****@*****.**");
     CurrentAddress.SendKeys("Brasov, Str. 13 Dec");
     PermanentAddress.SendKeys("Brasov, Str. 13 Dec");
     Submit.Click();
 }
Exemplo n.º 3
0
 public void FillIn(string FName, string LName, string Em, string Gen, string Mob, string Birth, string Subjects, string Hobbies, string CAddress, string State, string City)
 {
     FirstName.SendKeys(FName);
     LastName.SendKeys(LName);
     Email.SendKeys(Em);
     Gender.SendKeys(Gen);
     Mobile.SendKeys(Mob);
     DOB.SendKeys(Birth);
     CurrentAddress.SendKeys(CAddress);
 }