Exemplo n.º 1
0
 public void LoginIntoN11(string username, string password)
 {
     SignInButton.Click();
     EmailTextBox.SendKeys(username);
     PasswordBox.SendKeys(password);
     LoginButton.Click();
 }
Exemplo n.º 2
0
 //Login to SkillSwap Website
 public void LoginStep(string userName, string password)
 {
     SignInButton.Click();
     EmailTextBox.SendKeys(userName);
     PasswordTextBox.SendKeys(password);
     LoginButton.Click();
 }
        public void UserRegistration(string firstName, string lastName, string email, string password, string gender,
                                     string country)
        {
            email = email.Replace("_random", Guid.NewGuid().ToString());
            FirstNameTextBox.SendKeys(firstName);
            LastNameTextBox.SendKeys(lastName);
            EmailTextBox.SendKeys(email);
            PasswordTextBox.SendKeys(password);
            foreach (var genderBtn in GenderRadioButton)
            {
                var genderValue = genderBtn.GetAttribute("value");
                if (genderValue == gender)
                {
                    genderBtn.Click();
                    break;
                }
            }

            var countrySelect = new SelectElement(CountrySelectBox);

            countrySelect.SelectByText(country);


            DriverWait.Until(ExpectedConditions.ElementToBeClickable(SignupButton)).SendKeys(Keys.Enter);
        }
Exemplo n.º 4
0
        public string LogintoN11(string username, string password)
        {
            EmailTextBox.SendKeys(username);
            PasswordTextBox.SendKeys(password);
            string LoginPageTitle = webdriver.Title;

            LoginButton.Click();
            return(LoginPageTitle);
        }
Exemplo n.º 5
0
        public void SendRecoverEmail(string email)
        {
            EmailTextBox.SendKeys(email);
            SubmitButton.Click();
            DriverWait.Until(ExpectedConditions.TextToBePresentInElement(FlashAlert,
                                                                         "An email was sent to you to reset your password."));

            Thread.Sleep(10000);
        }
Exemplo n.º 6
0
        public override void Login(string userName, string password)
        {
            Console.WriteLine("Login on desktop mode");
            if (userName != null)
            {
                EmailTextBox.SendKeys(userName);
            }

            if (password != null)
            {
                PasswordTextBox.SendKeys(password);
            }
            LoginButton.Click();
        }
        public void Login(string username, string password)
        {
            DriverWait.Until(ExpectedConditions.ElementToBeClickable(EmailTextBox)).Click();

            EmailTextBox.SendKeys(Keys.Enter);
            EmailTextBox.SendKeys(username);
            EmailTextBox.SendKeys(Keys.Enter);

            DriverWait.Until(ExpectedConditions.ElementToBeClickable(PasswordTextBox)).SendKeys(password);
            PasswordTextBox.SendKeys(Keys.Enter);
            DriverWait.Until(ExpectedConditions.UrlContains("https://mail.google.com/mail/u/0/#inbox"));
            var emails = Driver.FindElements(By.ClassName("bog"));

            foreach (var email in emails)
            {
                if (email.Text.Contains("Souq.com"))
                {
                    email.Click();
                }
            }
            //  action.MoveToElement(email).Click().Perform();

            ClickEmail("Souq.com Password Reset");
        }
Exemplo n.º 8
0
 public void Login(string email, string password)
 {
     EmailTextBox.SendKeys(email);
     PasswordTextBox.SendKeys(password);
     LoginButton.Click();
 }
Exemplo n.º 9
0
 public void EnterEmail(string email) => EmailTextBox.SendKeys(email);