Table of Contents

Class WebDriverExceptionEventArgs

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

Provides data for events relating to exception handling.

public class WebDriverExceptionEventArgs : EventArgs
Inheritance
WebDriverExceptionEventArgs
Inherited Members

Constructors

WebDriverExceptionEventArgs(IWebDriver, Exception)

Initializes a new instance of the WebDriverExceptionEventArgs class.

public WebDriverExceptionEventArgs(IWebDriver driver, Exception thrownException)

Parameters

driver IWebDriver

The WebDriver instance throwing the exception.

thrownException Exception

The exception thrown by the driver.

Exceptions

ArgumentNullException

If driver or thrownException are null.

Properties

Driver

Gets the WebDriver instance.

public IWebDriver Driver { get; }

Property Value

IWebDriver

ThrownException

Gets the exception thrown by the driver.

public Exception ThrownException { get; }

Property Value

Exception