C# Class OpenQA.Selenium.Safari.SafariDriverCommandExecutor

Provides a way of executing Commands using the SafariDriver.
Inheritance: ICommandExecutor, IDisposable
Datei anzeigen Open project: krosenvold/selenium-git-release-candidate Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Releases all resources used by the SafariDriverCommandExecutor.

Execute ( Command commandToExecute ) : OpenQA.Selenium.Remote.Response

Executes a command

SafariDriverCommandExecutor ( int port ) : System

Initializes a new instance of the SafariDriverCommandExecutor class.

SafariDriverCommandExecutor ( int port, string safariLocation ) : System

Initializes a new instance of the SafariDriverCommandExecutor class.

Start ( ) : void

Starts the command executor.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases all resources associated with this SafariDriverCommandExecutor.

Private Methods

Method Description
CloseSafariProcess ( ) : void
DeleteConnectFile ( ) : void
GetDefaultSafariLocation ( ) : string
LaunchSafariProcess ( string initialPage ) : void
PrepareConnectFile ( ) : string

Method Details

Dispose() public method

Releases all resources used by the SafariDriverCommandExecutor.
public Dispose ( ) : void
return void

Dispose() protected method

Releases all resources associated with this SafariDriverCommandExecutor.
protected Dispose ( bool disposing ) : void
disposing bool if the Dispose method was explicitly called; otherwise, .
return void

Execute() public method

Executes a command
public Execute ( Command commandToExecute ) : OpenQA.Selenium.Remote.Response
commandToExecute OpenQA.Selenium.Remote.Command The command you wish to execute
return OpenQA.Selenium.Remote.Response

SafariDriverCommandExecutor() public method

Initializes a new instance of the SafariDriverCommandExecutor class.
public SafariDriverCommandExecutor ( int port ) : System
port int The port on which the executor communicates with the extension.
return System

SafariDriverCommandExecutor() public method

Initializes a new instance of the SafariDriverCommandExecutor class.
public SafariDriverCommandExecutor ( int port, string safariLocation ) : System
port int The port on which the executor communicates with the extension.
safariLocation string The location of the Safari executable
return System

Start() public method

Starts the command executor.
public Start ( ) : void
return void