Table of Contents

Class WebDriverNavigationEventArgs

Namespace
OpenQA.Selenium.Support.Events
Assembly
WebDriver.Support.dll

Provides data for events relating to navigation.

public class WebDriverNavigationEventArgs : EventArgs
Inheritance
WebDriverNavigationEventArgs
Inherited Members

Constructors

WebDriverNavigationEventArgs(IWebDriver)

Initializes a new instance of the WebDriverNavigationEventArgs class.

public WebDriverNavigationEventArgs(IWebDriver driver)

Parameters

driver IWebDriver

The WebDriver instance used in navigation.

Exceptions

ArgumentNullException

If driver is null.

WebDriverNavigationEventArgs(IWebDriver, string?)

Initializes a new instance of the WebDriverNavigationEventArgs class.

public WebDriverNavigationEventArgs(IWebDriver driver, string? url)

Parameters

driver IWebDriver

The WebDriver instance used in navigation.

url string

The URL navigated to by the driver, or null if none exists.

Exceptions

ArgumentNullException

If driver is null.

Properties

Driver

Gets the WebDriver instance used in navigation.

public IWebDriver Driver { get; }

Property Value

IWebDriver

Url

Gets the URL navigated to by the driver, or null if no URL could be determined.

public string? Url { get; }

Property Value

string