GetWebDriver() публичный Метод

Returns the underlying IWebDriver object
public GetWebDriver ( ) : IWebDriver
Результат IWebDriver
Пример #1
0
        /// <inheritdoc />
        protected internal sealed override void Activate()
        {
            if (_browser.ActiveDOM == this)
            {
                return;
            }

            Logger.WriteLine("Switching to window '{0}'", Description);
            _browser.GetWebDriver().SwitchTo().Window(_windowHandle);
            _browser.ActiveDOM = this;
        }
Пример #2
0
 /// <summary>
 /// Navigates the current browser window to the specified URL
 /// </summary>
 /// <param name="url">The URL to navigate to</param>
 /// <remarks>
 /// This method records the operation to the log using <see cref="Logger"/>
 /// </remarks>
 public void NavigateToUrl(string url)
 {
     Logger.WriteLine("Navigating to '{0}' on '{1}' window", url, Description);
     Activate();
     Browser.GetWebDriver().Navigate().GoToUrl(url);
 }