Example #1
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();
 }
        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());
        }
Example #4
0
 public void Login(string login, string password)
 {
     WaitUntil(TxtEmail).Click();
     TxtEmail.SendKeys(login);
     WaitUntil(TxtPassword).Click();
     TxtPassword.SendKeys(password);
     WaitUntil(BtnLogin).Click();
 }
Example #5
0
 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);
 }
Example #6
0
 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();
 }
Example #7
0
 /// <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));
 }
Example #8
0
        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);
        }
Example #9
0
        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());
        }
Example #10
0
        /// <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));
        }
Example #11
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);
 }
Example #12
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);
        }
Example #13
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());
        }
Example #14
0
        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());
        }
Example #15
0
 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);
 }
Example #18
0
 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();
 }
Example #21
0
 public void LoginUserValidCredentials(string username, string password)
 {
     TxtUserName.SendKeys(username);
     TxtPassword.SendKeys(password);
     BtnSubmit.Click();
 }
Example #22
0
 public void Login(string username, string password)
 {
     TxtUsername.SendKeys(username);
     TxtPassword.SendKeys(password);
     BtnLogin.Click();
 }