public static Browser LoginWithWait(Browser browser, LoginElements loginElements) //for ATT { WebDriver.WaitUntilElementIsVisible(browser.webDriver, loginElements.By1, 5).Click(); loginElements.LoginField.SendKeys(browser.UserId); loginElements.PasswordField.Click(); loginElements.PasswordField.SendKeys(browser.Password); loginElements.LoginButton.Click(); return browser; }
public static Browser Login(Browser browser, LoginElements loginElements) { loginElements.LoginField.Click(); loginElements.LoginField.SendKeys(browser.UserId); loginElements.PasswordField.Click(); loginElements.PasswordField.SendKeys(browser.Password); loginElements.LoginButton.Click(); return browser; }