Beispiel #1
0
 public void SignIn(string username, string password)
 {
     SignInElement.Click();
     this.WaitUntilDisplayed(UsernameFieldElement);
     this.WaitUntilDisplayed(UserpasswordElement);
     this.FillFields(username, password);
     RememberLoginElement.Click();
     LoginButtonElement.Click();
 }
Beispiel #2
0
 public MainPage SignIn(BasePage bp, string username, string password)
 {
     SignInElement.Click();
     this.WaitUntilDisplayed(UsernameFieldElement);
     this.WaitUntilDisplayed(UserpasswordElement);
     this.FillFields(username, password);
     RememberLoginElement.Click();
     LoginButtonElement.Click();
     return(new MainPage(bp));
 }