//public void Login(String Usern, String pwdn) //{ // _logger.Trace("Attempting to login"); // PropertiesCollection.driver.Navigate().Refresh(); // username.EnterText(Usern); // _logger.Info($"username is {Usern}"); // pwd.EnterText(pwdn); // _logger.Info("password is {0}", pwdn); // loginButton.Clickme(); //} public void Login(string sheetname, string testName) { _logger.Trace("Attempting to login"); PropertiesCollection.driver.Navigate().Refresh(); var userData = ExcelDataAccess.GetTestData(sheetname, testName); username.EnterText(userData.Username); _logger.Info($"username is {userData.Username}"); pwd.EnterText(userData.Password); _logger.Info("password is {0}", userData.Password); loginButton.Clickme(); }
public LoginPage EnterEmail(string emailText) { EmailAddressTextBox.EnterText(emailText, WebDriver); return(this); }
public LoginPage EnterPassword(string passwordText) { PasswordTextBox.EnterText(passwordText, WebDriver); return(this); }
public GooglePage EnterQueryText(string queryText) { QueryTextBox.EnterText(queryText + Keys.Enter, WebDriver); return(this); }