public void ClickNextButton() { IWebElement element = DriverSingletone.GetDriver().FindElement(By.XPath("//span[@class='RveJvd snByac']")); //element.WaitForElementToBeClickable(); element.WaitForElementIsDisplayed(); element.Click(); }
public LoginPage() { PageFactory.InitElements(DriverSingletone.GetDriver(), this); }
public void SetUpDriver() { driver = DriverSingletone.GetDriver(); }
public static void ClickWhitJSHelp(this IWebElement element) { new WebDriverWait(DriverSingletone.GetDriver(), TimeSpan.FromSeconds(5)).Until( d => ((IJavaScriptExecutor)d).ExecuteScript("return document.readyState").Equals("complete")); ((IJavaScriptExecutor)DriverSingletone.GetDriver()).ExecuteScript("arguments[0].click()", element); }
public static WebDriverWait GetWebDriverWait(int timeout) { return(new WebDriverWait(DriverSingletone.GetDriver(), TimeSpan.FromSeconds(timeout))); }
public static void GoToUrl(string url) { DriverSingletone.GetDriver().Navigate().GoToUrl(url); }