Exemple #1
0
 public void FillLoginForm(AccountData account)
 {
     driver.FindElement(By.Name("username")).SendKeys(account.Name);
     Login();
     driver.FindElement(By.Name("password")).SendKeys(account.Password);
 }
Exemple #2
0
 public void Login(AccountData account)
 {
     OpenMainPage();
     FillLoginForm(account);
     Login();
 }
 public bool IsLoggedIn(AccountData account)
 {
     return(IsLoggedIn() &&
            GetLoggetUserName() == account.Username);
 }
Exemple #4
0
 public void DeleteProject(AccountData account, string id)
 {
     Mantis.MantisConnectPortTypeClient client = new Mantis.MantisConnectPortTypeClient();
     client.mc_project_delete(account.Username, account.Password, id);
 }
Exemple #5
0
 private void FillRegistrationForm(AccountData account)
 {
     driver.FindElement(By.Name("username")).SendKeys(account.Name);
     driver.FindElement(By.Name("email")).SendKeys(account.Email);
 }
Exemple #6
0
 private void FillPasswordForm(string url, AccountData account)
 {
     driver.Url = url;
     driver.FindElement(By.Name("password")).SendKeys(account.Password);
     driver.FindElement(By.Name("password_confirm")).SendKeys(account.Password);
 }