public static void LogInSetUp() { driver = BrowserFactory.InitializeBrowser("Chrome"); driver.Manage().Window.Maximize(); driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10)); Navigation.Navigate(driver, "http://journals.lww.com/pages/login.aspx?ContextUrl=%2fpages%2fdefault.aspx"); LogIn loginPage = new LogIn(driver); User user = new User(); user.Username = USERNAME; user.Password = PASSWORD; //log in the web site Login.LogIn(loginPage.UsernameBox, loginPage.PasswordBox, loginPage.LoginButton, user.Username, user.Password); }
public static void LogInSetUp() { driver = BrowserFactory.InitializeBrowser("Chrome"); driver.Manage().Window.Maximize(); driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10)); }
public void SetUp() { BrowserFactory.InitializeBrowser(Chrome); browser = BrowserFactory.Driver; }