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