public void FillForm(Registration_User user) { radioButton[0].Click(); firstNameField.SendKeys(user.firstNameField); lastNameField.SendKeys(user.lastNameField); passwordField.SendKeys(user.passwordField); Days.SelectByValue(user.dateDD); Months.SelectByValue(user.monthDD); Years.SelectByValue(user.yearDD); addressFirstName.SendKeys(user.addressFirstName); addressField.SendKeys(user.addressField); cityField.SendKeys(user.cityField); State.SelectByValue(user.stateDD); postcode.SendKeys(user.postcode); phoneField.SendKeys(user.phoneField); alias.SendKeys(user.alias); registerButton.Click(); }
public void ClassInitialize() { //RegistrationPages _driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)); _wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(30)); _driver.Manage().Window.Maximize(); _driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); _loginPage = new LoginPage(_driver); _registrationPageFull = new RegistrationPageFull(_driver); _user = UserFactory.CreateRegistrationUser(); //Google search _googleSearchPage = new GoogleSearchPage(_driver); _googleSearchResults = new GoogleSearchResults(_driver); _googleFindPage = new GoogleFindPage(_driver); //SoftUniCoursePage check _softUniCoursePage = new SoftUniCoursePage(_driver); _softUniPage = new SoftUniPage(_driver); }
public void ClassInitialize() { //ChromeOptions options = new ChromeOptions(); //options.PlatformName = "windows"; //options.BrowserVersion = "77.0"; //_driver = new RemoteWebDriver(new Uri("http://192.168.100.8:27617/wd/hub"), options.ToCapabilities(), TimeSpan.FromSeconds(10)); //_driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(30); //_driver.Manage().Window.Maximize(); //_wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(30)); //_driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); //_driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)); //_wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(30)); //_driver.Manage().Window.Maximize(); //_driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); _loginPage = new LoginPage(Driver); _registrationPageFull = new RegistrationPageFull(Driver); _user = UserFactory.CreateRegistrationUser(); }