Beispiel #1
0
        /// <summary>
        /// Performs the login using the <paramref name="username"/> & <paramref name="password"/>
        /// </summary>
        /// <param name="username">The username.</param>
        /// <param name="password">The password.</param>
        public Homepage Login(string username, string password)
        {
            WaitForLoad();

            InputEmail.Clear();
            InputEmail.SendKeys(username);

            InputPassword.Clear();
            InputPassword.SendKeys(password);

            SubmitButton.Click();

            return(new Homepage(Helper.Homepage.AbsoluteUri, Helper.HomepageTitle));
        }
Beispiel #2
0
        public bool InformarEmail(string email)
        {
            bool _result = false;

            try
            {
                util.WaitForElementVisible(InputEmail, 30);
                if (InputEmail.Displayed)
                {
                    InputEmail.Click();
                    Thread.Sleep(400);
                    InputEmail.SendKeys(email);

                    _result = true;
                }
                else
                {
                }
            }
            catch
            {
            }
            return(_result);
        }
Beispiel #3
0
 private void RegisterInputEmail(string userName)
 {
     InputEmail.SendKeys(userName);
     LogManager.Instance.WriteToLog(LogManager.elogLevel.Debug, "enter the  email: " + userName + " to input field");
 }