public void LoginToApplication(string sUsername, string sPassword) { commonElement.SetText(username, sUsername); commonElement.SetText(password, sPassword); commonElement.ClickElement(loginButton); }
public void ClickAcceptAllCookies() { WaitUtils.WaitForPageToLoad(driver); //if (cmnElement.isEnabled(AcceptCookiesButton) && cmnElement.isDisplayed(AcceptCookiesButton)) //{ // cmnElement.ClickElement(AcceptCookiesButton); //} cmnElement.ElementToBeClickable(AcceptCookiesButton); cmnElement.ClickElement(AcceptCookiesButton); WaitUtils.WaitForPageToLoad(driver); }