コード例 #1
0
 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));
 }
コード例 #2
0
 internal static void GoTo(this IWebDriver webDriver, ISeleniumLoadable seleniumWebPage)
 {
     webDriver.Navigate().GoToUrl(seleniumWebPage.Uri.AbsoluteUri);
 }
コード例 #3
0
 /// <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;