예제 #1
0
        /*Actions*/

        //Login Method
        public void logIn(String userName, String password)
        {
            //conditionals should be added here
            logInButtonTitle.Click();
            UserField.SendKeys(userName);
            ContinueButton.Click();
            try
            {
                PasswordField.SendKeys(password);
            }
            catch (ElementNotInteractableException)
            {
                Console.WriteLine("UserField Element not Interactable");
            }
            try
            {
                LoginButton.Click();
            }
            catch (NoSuchElementException)
            {
                Console.WriteLine("No Element is displayed");
            }
        }
예제 #2
0
 private void SetUserName(string userame)
 {
     UserField.SendKeys(userame);
 }