GetWebDriver() public method

Returns the underlying IWebDriver object
public GetWebDriver ( ) : IWebDriver
return IWebDriver
Exemplo n.º 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;
        }
Exemplo n.º 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);
 }