public void LogIn(string login, string password) { LoginField.ClearAndSendText(login); EnterButton.ClickElement(); WebDriverWaitUtil.WaitForElementToBeVisible(PasswordField); PasswordField.ClearAndSendText(password); }
public static bool IsElementDisplayed(this IWebElement element) { try { WebDriverWaitUtil.WaitForElementToBeVisible(element); } catch (TimeoutException) { return(false); } return(true); }
public bool CheckMessageIsSent() { WebDriverWaitUtil.WaitForElementToBeVisible(MessageSentMessage); return(MessageSentMessage.IsElementDisplayed()); }
public bool IsLogoutDisplayed() { WebDriverWaitUtil.WaitForElementToBeVisible(LogoutLink); return(LogoutLink.Displayed); }