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

Base class for handling all DriverCommand values where the URL specifies a session ID. In other words, the URL must contain "/session/{sessionId}/".
Inheritance: CommandHandler
Mostra file Open project: jimevans/strontium

Public Methods

Method Description
ToString ( ) : string

Returns a string representing the description of this CommandHandler.

Protected Methods

Method Description
GetLocator ( string mechanism, string findValue ) : By

Gets a By object to be used to locate elements on the page.

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

Initializes a new instance of the WebDriverCommandHandler class.

WrapElement ( IWebElement element ) : object>.Dictionary

Wraps an IWebElement for transmission back to a remote client.

Method Details

GetLocator() protected static method

Gets a By object to be used to locate elements on the page.
protected static GetLocator ( string mechanism, string findValue ) : By
mechanism string The mechanism to use, such as ID, name or link text to find elements.
findValue string The value to match in finding elements.
return By

ToString() public method

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

WebDriverCommandHandler() protected method

Initializes a new instance of the WebDriverCommandHandler class.
protected WebDriverCommandHandler ( 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

WrapElement() protected method

Wraps an IWebElement for transmission back to a remote client.
protected WrapElement ( IWebElement element ) : object>.Dictionary
element IWebElement The to wrap for transmission.
return object>.Dictionary