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