Class WebDriverNavigationEventArgs
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
IWebDriverThe 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
IWebDriverThe WebDriver instance used in navigation.
url
stringThe 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
Url
Gets the URL navigated to by the driver, or null if no URL could be determined.
public string? Url { get; }