//method to login public void Login(string email, string passwrd) { TxtEmail.SendKeys(email); TxtPasswrd.SendKeys(passwrd); BtnLogIn.Click(); //return new WelcomePage(); }
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 void Login(string login, string password) { WaitUntil(TxtEmail).Click(); TxtEmail.SendKeys(login); WaitUntil(TxtPassword).Click(); TxtPassword.SendKeys(password); WaitUntil(BtnLogin).Click(); }
public StorePage Login(string email, string password) { Console.WriteLine("Debug: Inside Login()"); Console.WriteLine("Debug" + TxtEmail); TxtEmail.SendKeys(email); Console.WriteLine("Sending email to login"); TxtPasswrd.SendKeys(password); BtnLogin.Click(); return(new StorePage()); }
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()); }
//method to fill register form public IWebElement Register(string fname, string lname, int date, string month, int year, string email, string passwrd) { TxtFirstName.SendKeys(fname); TxtLastName.SendKeys(lname); SelectDay.SendKeys(date.ToString()); SelectMonth.SendKeys(month); SelectYear.SendKeys(year.ToString()); TxtEmail.SendKeys(email); TxtPasswrd.SendKeys(passwrd); TxtConfirmPasswrd.SendKeys(passwrd); BtnRegister.Click(); Console.WriteLine("Registering using MyAccountPage.Register"); try { BtnContinue = PropertiesCollection.Driver.FindElement(By.Name("register-continue")); } catch (OpenQA.Selenium.NoSuchElementException) { BtnContinue = null; } Console.WriteLine(BtnContinue); return(BtnContinue); }
public void Login(string email, string passwd) { TxtEmail.SendKeys(email); TxtPassword.SendKeys(passwd); ButtonSubmit.Click(); }
public void Recover(string email, string password) { TxtEmail.SendKeys(email); TxtNewPassword.SendKeys(password); BtnChangePswd.Click(); }
public void FillEmailAndSignIn(string email) { TxtEmail.SendKeys(email); BtnSignIn.Click(); }
public void LoginApplication(LoginBO loginBo) { TxtEmail.SendKeys(loginBo.UserEmail); TxtPassword.SendKeys(loginBo.Password); BtnSignIn.Click(); }
public void Login(string email, string password) { TxtEmail.SendKeys(email); TxtPassword.SendKeys(password); BtnLogin.Click(); }