Beispiel #1
0
        public void Login()
        {
            _browser.Navigate().GoToUrl(MarketingCloudUrl);

            UsernameTextField.SendKeys(Username);
            PasswordTextField.SendKeys(Password);
            LoginButton.Click();
        }
        public void Login(User user)
        {
            Browser.Wait();

            EmailTextField.Clear();
            EmailTextField.SendKeys(user.Email);

            PasswordTextField.Clear();
            PasswordTextField.SendKeys(user.Password);

            LoginButton.Click();
        }
        public void Login(String email, String password)
        {
            Browser.Wait();

            EmailTextField.Clear();
            EmailTextField.SendKeys(email);

            PasswordTextField.Clear();
            PasswordTextField.SendKeys(password);

            LoginButton.Click();
        }
Beispiel #4
0
        public void LoginToApp(string username, string password)
        {
            AccountIcon.Click();
            Thread.Sleep((int)ScriptWaits.SmallerWait);

            EmailTextField.Clear();
            EmailTextField.SendKeys(username);

            PasswordTextField.Clear();
            PasswordTextField.SendKeys(password);

            SignInButton.Click();

            waitMechanism.ExplicitWaitByXPath(webDriver, 20, NavBarXPath);
        }
Beispiel #5
0
 /// <summary>
 /// Try to log in by user name and password.
 /// Throws Invalid operation exception if login or password are not right
 /// </summary>
 /// <param name="userName">string with user name</param>
 /// <param name="userPassword">string with user password</param>
 /// <returns>Next page, if log in is correct</returns>
 public WorkspacePage LogIn(string userName, string userPassword)
 {
     LoginTextField.SendKeys(userName);
     PasswordTextField.SendKeys(userPassword);
     while (LoginTextField.GetAttribute("value") != userName)
     {
         LoginTextField.Clear();
         LoginTextField.SendKeys(userName);
     }
     SubmitButton.Click();
     Driver.SwitchTo().Window(Driver.WindowHandles.Last());
     if (Driver.Title == title)
     {
         throw new InvalidOperationException();
     }
     return(new WorkspacePage(Driver));
 }
Beispiel #6
0
 public void FillPasswordTextField(string password)
 {
     PasswordTextField.SendKeys(password);
 }
Beispiel #7
0
 public void FillPasswordField(string content)
 {
     PasswordTextField.SendKeys(content);
 }
Beispiel #8
0
 public void EnterPassword(String password)
 {
     PasswordTextField.SendKeys(password);
 }
Beispiel #9
0
 public LoginPage TypePassword(string password)
 {
     PasswordTextField.SendKeys(password);
     return(this);
 }