public void Register(string email, string password, string fullname, string age) { TxtEmail.SendKeys(email); TxtPassword.SendKeys(password); TxtFullname.SendKeys(fullname); TxtAge.SendKeys(age); BtnRegister.Click(); }
public EAPageObject Login(string userName, string password) { TxtUserName.SendKeys(userName); TxtPassword.SendKeys(password); BtnLogin.Submit(); return(new EAPageObject()); }
//method to fill the sign in form public AccountPage SignIn(string email, string password) { TxtEmail1.SendKeys(email); TxtPassword.SendKeys(password); BtnClick.Click(); return(new AccountPage()); }
public void Login(string login, string password) { WaitUntil(TxtEmail).Click(); TxtEmail.SendKeys(login); WaitUntil(TxtPassword).Click(); TxtPassword.SendKeys(password); WaitUntil(BtnLogin).Click(); }
public string LoginUserInvalidCredentials(string username, string password) { TxtUserName.SendKeys(username); TxtPassword.SendKeys(password); BtnSubmit.Click(); Thread.Sleep(5000); ErrorMessage = driver.FindElement(By.CssSelector(".alert.alert-danger")); return(ErrorMessage.Text); }
public void EnterPassword(string password) { CustomLib.Highlightelement(TxtPassword); CustomWait.FluentWaitbyXPath("txtPassword"); TxtPassword.SendKeys(password);//Enter Password CustomLib.Highlightelement(SignIn); //Click on LoginBtn CustomWait.FluentWaitbyXPath("signIn"); SignIn.Clicks(); }
/// <summary> /// Login to TA Dashboard page /// </summary> /// <param name="username">The username.</param> /// <param name="password">The password.</param> /// <param name="repositoryName">Name of the repository.</param> /// <Author>Long and Phat</Author> /// <returns></returns> public MainPage SignOn(string username, string password, string repositoryName = null) { if (repositoryName != null) { CmbRepo.SelectItem(repositoryName); } TxtUsername.SendKeys(username); TxtPassword.SendKeys(password); BtnLogin.Click(); return(new MainPage(WebDriver)); }
public LoginPage LoginInvalid(string username, string password) { //submit creds TxtUsername.Clear(); TxtUsername.SendKeys(username); TxtPassword.Clear(); TxtPassword.SendKeys(password); BtnLogin.Click(); //homepage return return(this); }
public HomePage Login(string username, string password) { //submit creds TxtUsername.Clear(); TxtUsername.SendKeys(username); TxtPassword.Clear(); TxtPassword.SendKeys(password); BtnLogin.Click(); //homepage return return(new HomePage()); }
/// <summary> /// Method TryLogin /// Gets login and password, and try login in site. /// </summary> /// <param name="login">String with login</param> /// <param name="password">String with password.</param> /// <returns>Answers whether you managed to enter.</returns> public bool TryLogin(string login, string password) { WaitUntil(TxtLogin).Click(); TxtLogin.Clear(); TxtLogin.SendKeys(login); WaitUntil(TxtPassword).Click(); TxtPassword.Clear(); TxtPassword.SendKeys(password); WaitUntil(BtnLogin).Click(); return(Browser.WebDriver.Url.Contains(BuyTicketPage.Url)); }
public RegisterPage RegisterInvalid(string email, string password, string confirm, string pid) { //input data TxtEmail.Clear(); TxtEmail.SendKeys(email); TxtPassword.Clear(); TxtPassword.SendKeys(password); TxtConfirmPassword.Clear(); TxtConfirmPassword.SendKeys(confirm); TxtPIDPassport.Clear(); TxtPIDPassport.SendKeys(pid); //submit BtnRegister.Click(); //return thank you page return(this); }
public RegisterPage RegisterInvalid(User user) { //input data TxtEmail.Clear(); TxtEmail.SendKeys(user.Email); TxtPassword.Clear(); TxtPassword.SendKeys(user.Password); TxtConfirmPassword.Clear(); TxtConfirmPassword.SendKeys(user.PasswordConfirm); TxtPIDPassport.Clear(); TxtPIDPassport.SendKeys(user.Pid); //submit BtnRegister.Click(); //return error page return(this); }
public ThankYouRegisterPage Register(User user) { //input data TxtEmail.Clear(); TxtEmail.SendKeys(user.Email); TxtPassword.Clear(); TxtPassword.SendKeys(user.Password); TxtConfirmPassword.Clear(); TxtConfirmPassword.SendKeys(user.PasswordConfirm); TxtPIDPassport.Clear(); TxtPIDPassport.SendKeys(user.Pid); //submit BtnRegister.Click(); //return thank you page return(new ThankYouRegisterPage()); }
public HomePageObject Login(string initial, string firstName) { try { // populate username TxtUserName.SendKeys(initial); // populate password TxtPassword.SendKeys(firstName); // initiate click BtnLogin.Click(); } catch (Exception) { // ignored } return(new HomePageObject()); }
public void Login(string email, string passwd) { TxtEmail.SendKeys(email); TxtPassword.SendKeys(passwd); ButtonSubmit.Click(); }
public void Login(string email, string password) { TxtEmail.SendKeys(email); TxtPassword.SendKeys(password); BtnLogin.Click(); }
public void PopulatePassword(string password) { TxtPassword.SendKeys(password); }
public void LoginApplication(LoginBO loginBo) { TxtUserName.SendKeys(loginBo.UserName); TxtPassword.SendKeys(loginBo.Password); BtnSignIn.Click(); }
/// <summary> /// Method used to complete password input in Family Login Page /// </summary> /// <param name="password"></param> public void EnterPassword(string password) { TxtPassword.SendKeys(password); }
public void ValidLogin() { TxtUsername.SendKeys("admin"); TxtPassword.SendKeys("wtqwerty"); BtnLogin.Click(); }
public void LoginUserValidCredentials(string username, string password) { TxtUserName.SendKeys(username); TxtPassword.SendKeys(password); BtnSubmit.Click(); }
public void Login(string username, string password) { TxtUsername.SendKeys(username); TxtPassword.SendKeys(password); BtnLogin.Click(); }