示例#1
0
 //method to login
 public void Login(string email, string passwrd)
 {
     TxtEmail.SendKeys(email);
     TxtPasswrd.SendKeys(passwrd);
     BtnLogIn.Click();
     //return new WelcomePage();
 }
示例#2
0
 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();
 }
示例#3
0
 public void Login(string login, string password)
 {
     WaitUntil(TxtEmail).Click();
     TxtEmail.SendKeys(login);
     WaitUntil(TxtPassword).Click();
     TxtPassword.SendKeys(password);
     WaitUntil(BtnLogin).Click();
 }
示例#4
0
 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());
 }
示例#5
0
 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);
 }
示例#6
0
        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);
        }
示例#7
0
        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());
        }
示例#8
0
 //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);
 }
示例#9
0
 public void Login(string email, string passwd)
 {
     TxtEmail.SendKeys(email);
     TxtPassword.SendKeys(passwd);
     ButtonSubmit.Click();
 }
示例#10
0
 public void Recover(string email, string password)
 {
     TxtEmail.SendKeys(email);
     TxtNewPassword.SendKeys(password);
     BtnChangePswd.Click();
 }
示例#11
0
 public void FillEmailAndSignIn(string email)
 {
     TxtEmail.SendKeys(email);
     BtnSignIn.Click();
 }
示例#12
0
 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();
 }