Table of Contents

Class WebDriverScriptEventArgs

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

Provides data for events relating to executing JavaScript.

public class WebDriverScriptEventArgs : EventArgs
Inheritance
WebDriverScriptEventArgs
Inherited Members

Constructors

WebDriverScriptEventArgs(IWebDriver, string)

Initializes a new instance of the WebDriverScriptEventArgs class.

public WebDriverScriptEventArgs(IWebDriver driver, string script)

Parameters

driver IWebDriver

The WebDriver instance used to execute the script.

script string

The script executed by the driver.

Exceptions

ArgumentNullException

If driver or script are null.

Properties

Driver

Gets the WebDriver instance used to execute the script.

public IWebDriver Driver { get; }

Property Value

IWebDriver

Script

Gets the script executed by the driver.

public string Script { get; }

Property Value

string