Esempio n. 1
0
 public void LogIn(string login, string password)
 {
     LoginField.ClearAndSendText(login);
     EnterButton.ClickElement();
     WebDriverWaitUtil.WaitForElementToBeVisible(PasswordField);
     PasswordField.ClearAndSendText(password);
 }
Esempio n. 2
0
        public static bool IsElementDisplayed(this IWebElement element)
        {
            try
            {
                WebDriverWaitUtil.WaitForElementToBeVisible(element);
            }
            catch (TimeoutException)
            {
                return(false);
            }

            return(true);
        }
Esempio n. 3
0
 public bool CheckMessageIsSent()
 {
     WebDriverWaitUtil.WaitForElementToBeVisible(MessageSentMessage);
     return(MessageSentMessage.IsElementDisplayed());
 }
Esempio n. 4
0
 public bool IsLogoutDisplayed()
 {
     WebDriverWaitUtil.WaitForElementToBeVisible(LogoutLink);
     return(LogoutLink.Displayed);
 }