/// <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; }
/// <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); }