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
driverIWebDriverThe WebDriver instance used in navigation.
Exceptions
- ArgumentNullException
If
driveris null.
WebDriverNavigationEventArgs(IWebDriver, string?)
Initializes a new instance of the WebDriverNavigationEventArgs class.
public WebDriverNavigationEventArgs(IWebDriver driver, string? url)
Parameters
driverIWebDriverThe WebDriver instance used in navigation.
urlstringThe URL navigated to by the driver, or null if none exists.
Exceptions
- ArgumentNullException
If
driveris 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; }