public void Commons() { LoginPage loginPage = new LoginPage(this.Driver); UserCommons.CreateUser( loginPage, ConfigurationManager.AppSettings["USERNAME"], ConfigurationManager.AppSettings["PASSWORD"], ConfigurationManager.AppSettings["NEW_USER"], ConfigurationManager.AppSettings["NEW_PASSWORD"], true, true); UserCommons.ChangePassword( loginPage, ConfigurationManager.AppSettings["USERNAME"], ConfigurationManager.AppSettings["PASSWORD"], ConfigurationManager.AppSettings["NEW_USER"], ConfigurationManager.AppSettings["CHANGE_PASSWORD"]); UserCommons.CheckUser( loginPage, ConfigurationManager.AppSettings["NEW_USER"], ConfigurationManager.AppSettings["CHANGE_PASSWORD"]); UserCommons.DeleteUser( loginPage, ConfigurationManager.AppSettings["USERNAME"], ConfigurationManager.AppSettings["PASSWORD"], ConfigurationManager.AppSettings["NEW_USER"]); }
public void CheckUser(String newUser, String newPassword) { LoginPage loginPage = new LoginPage(this.Driver); UserCommons.CheckUser( loginPage, newUser, newPassword); }