internal static void WaitForReadyState(this IWebDriver webDriver, ISeleniumLoadable seleniumWebPage) { // issue synchronous waits via selenium tools until webcontent is ready. selenium does not have async implementations. webDriver.Wait(By.CssSelector(seleniumWebPage.SeleniumWaitSelector)); }
internal static void GoTo(this IWebDriver webDriver, ISeleniumLoadable seleniumWebPage) { webDriver.Navigate().GoToUrl(seleniumWebPage.Uri.AbsoluteUri); }
/// <summary> /// Initializes a new instance of the <see cref="PageSourceRequest"/> class. /// </summary> /// <param name="page">The selenium webpage.</param> public PageSourceRequest(ISeleniumLoadable page) => _page = page;