Exemplo n.º 1
0
 public void FillLoginForm(AccountData account)
 {
     driver.FindElement(By.Name("username")).SendKeys(account.Name);
     Login();
     driver.FindElement(By.Name("password")).SendKeys(account.Password);
 }
Exemplo n.º 2
0
 public void Login(AccountData account)
 {
     OpenMainPage();
     FillLoginForm(account);
     Login();
 }
Exemplo n.º 3
0
 public bool IsLoggedIn(AccountData account)
 {
     return(IsLoggedIn() &&
            GetLoggetUserName() == account.Username);
 }
Exemplo n.º 4
0
 public void DeleteProject(AccountData account, string id)
 {
     Mantis.MantisConnectPortTypeClient client = new Mantis.MantisConnectPortTypeClient();
     client.mc_project_delete(account.Username, account.Password, id);
 }
Exemplo n.º 5
0
 private void FillRegistrationForm(AccountData account)
 {
     driver.FindElement(By.Name("username")).SendKeys(account.Name);
     driver.FindElement(By.Name("email")).SendKeys(account.Email);
 }
Exemplo n.º 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);
 }