C# Class OpenQA.Selenium.Remote.Server.CommandHandlers.ExecuteScriptHandler

Provides the handler for the DriverCommand.ExecuteScript command.
Inheritance: WebDriverCommandHandler
Show file Open project: jimevans/strontium

Public Methods

Method Description
Execute ( ) : object

Executes an arbitrary JavaScript function on the page.

ExecuteScriptHandler ( string>.Dictionary locatorParameters, object>.Dictionary parameters ) : System

Initializes a new instance of the ExecuteScriptHandler class.

ToString ( ) : string

Returns a string representing the description of this CommandHandler.

Protected Methods

Method Description
ParseArguments ( ) : object[]

Parses arguments to the script.

ParseJavaScriptReturnValue ( object returnValue ) : object

Parses the return value from the JavaScript execution.

Method Details

Execute() public method

Executes an arbitrary JavaScript function on the page.
public Execute ( ) : object
return object

ExecuteScriptHandler() public method

Initializes a new instance of the ExecuteScriptHandler class.
public ExecuteScriptHandler ( string>.Dictionary locatorParameters, object>.Dictionary parameters ) : System
locatorParameters string>.Dictionary A containing the parameters used to match a resource in the URL.
parameters object>.Dictionary A containing the parameters used to operate on the resource.
return System

ParseArguments() protected method

Parses arguments to the script.
protected ParseArguments ( ) : object[]
return object[]

ParseJavaScriptReturnValue() protected method

Parses the return value from the JavaScript execution.
protected ParseJavaScriptReturnValue ( object returnValue ) : object
returnValue object The return value returned from the JavaScript execution.
return object

ToString() public method

Returns a string representing the description of this CommandHandler.
public ToString ( ) : string
return string