Exemplo n.º 1
0
 public static void DoLogin()
 {
     try
     {
         LoginWebItems.LoginFormButton.Click();
         LoginWebItems.UserNameTextBox.SetValue("*****@*****.**");
         LoginWebItems.PasswordTextBox.SetValue("Bqweqweq!");
         LoginWebItems.LoginButton.Click();
         TestFramework.Delay();
     }
     catch (Exception e)
     {
         Console.WriteLine("{0} exceptions ", e.Message);
     }
 }
Exemplo n.º 2
0
        public void Login()
        {
            WebItems.SignInButton.Click();

            TestFramework.Delay(2);

            string login    = ConfigurationManager.AppSettings["login"];
            string password = ConfigurationManager.AppSettings["password"];

            if (!string.IsNullOrWhiteSpace(login) && !string.IsNullOrWhiteSpace(password))
            {
                WebItems.LoginField.SetValue(login);
                WebItems.PasswordField.SetValue(password);
                WebItems.SubmitButton.Click();
            }
            else
            {
                throw new ConfigurationErrorsException("Check config setting 'login' or 'password'");
            }
        }
Exemplo n.º 3
0
        public void InitializeSession()
        {
            TestFramework.OpenURL("https://www.badoo.com");

            TestFramework.Delay(2);
        }