C# Class OpenQA.Selenium.PhantomJS.PhantomJSDriver

Provides a way to access PhantomJS to run your tests by creating a PhantomJSDriver instance
When the WebDriver object has been instantiated the browser will load. The test can then navigate to the URL under test and start your test.
Inheritance: OpenQA.Selenium.Remote.RemoteWebDriver, ITakesScreenshot
Show file Open project: krosenvold/selenium-git-release-candidate Class Usage Examples

Public Methods

Method Description
GetScreenshot ( ) : Screenshot

Gets a Screenshot object representing the image of the page on the screen.

PhantomJSDriver ( ) : System

Initializes a new instance of the PhantomJSDriver class.

PhantomJSDriver ( PhantomJSDriverService service, OpenQA.Selenium.PhantomJS.PhantomJSOptions options ) : System

Initializes a new instance of the PhantomJSDriver class using the specified PhantomJSDriverService and options.

PhantomJSDriver ( PhantomJSDriverService service, OpenQA.Selenium.PhantomJS.PhantomJSOptions options, System.TimeSpan commandTimeout ) : System

Initializes a new instance of the PhantomJSDriver class using the specified PhantomJSDriverService.

PhantomJSDriver ( OpenQA.Selenium.PhantomJS.PhantomJSOptions options ) : System

Initializes a new instance of the PhantomJSDriver class with the desired options.

PhantomJSDriver ( string phantomJSDriverServerDirectory ) : System

Initializes a new instance of the PhantomJSDriver class using the specified path to the directory containing PhantomJS.exe.

PhantomJSDriver ( string phantomJSDriverServerDirectory, OpenQA.Selenium.PhantomJS.PhantomJSOptions options ) : System

Initializes a new instance of the PhantomJSDriver class using the specified path to the directory containing PhantomJS.exe and options.

PhantomJSDriver ( string phantomJSDriverServerDirectory, OpenQA.Selenium.PhantomJS.PhantomJSOptions options, System.TimeSpan commandTimeout ) : System

Initializes a new instance of the PhantomJSDriver class using the specified path to the directory containing PhantomJS.exe, options, and command timeout.

Method Details

GetScreenshot() public method

Gets a Screenshot object representing the image of the page on the screen.
public GetScreenshot ( ) : Screenshot
return Screenshot

PhantomJSDriver() public method

Initializes a new instance of the PhantomJSDriver class.
public PhantomJSDriver ( ) : System
return System

PhantomJSDriver() public method

Initializes a new instance of the PhantomJSDriver class using the specified PhantomJSDriverService and options.
public PhantomJSDriver ( PhantomJSDriverService service, OpenQA.Selenium.PhantomJS.PhantomJSOptions options ) : System
service PhantomJSDriverService The to use.
options OpenQA.Selenium.PhantomJS.PhantomJSOptions The used to initialize the driver.
return System

PhantomJSDriver() public method

Initializes a new instance of the PhantomJSDriver class using the specified PhantomJSDriverService.
public PhantomJSDriver ( PhantomJSDriverService service, OpenQA.Selenium.PhantomJS.PhantomJSOptions options, System.TimeSpan commandTimeout ) : System
service PhantomJSDriverService The to use.
options OpenQA.Selenium.PhantomJS.PhantomJSOptions The used to initialize the driver.
commandTimeout System.TimeSpan The maximum amount of time to wait for each command.
return System

PhantomJSDriver() public method

Initializes a new instance of the PhantomJSDriver class with the desired options.
public PhantomJSDriver ( OpenQA.Selenium.PhantomJS.PhantomJSOptions options ) : System
options OpenQA.Selenium.PhantomJS.PhantomJSOptions The used to initialize the driver.
return System

PhantomJSDriver() public method

Initializes a new instance of the PhantomJSDriver class using the specified path to the directory containing PhantomJS.exe.
public PhantomJSDriver ( string phantomJSDriverServerDirectory ) : System
phantomJSDriverServerDirectory string The full path to the directory containing PhantomJS.exe.
return System

PhantomJSDriver() public method

Initializes a new instance of the PhantomJSDriver class using the specified path to the directory containing PhantomJS.exe and options.
public PhantomJSDriver ( string phantomJSDriverServerDirectory, OpenQA.Selenium.PhantomJS.PhantomJSOptions options ) : System
phantomJSDriverServerDirectory string The full path to the directory containing PhantomJS.exe.
options OpenQA.Selenium.PhantomJS.PhantomJSOptions The used to initialize the driver.
return System

PhantomJSDriver() public method

Initializes a new instance of the PhantomJSDriver class using the specified path to the directory containing PhantomJS.exe, options, and command timeout.
public PhantomJSDriver ( string phantomJSDriverServerDirectory, OpenQA.Selenium.PhantomJS.PhantomJSOptions options, System.TimeSpan commandTimeout ) : System
phantomJSDriverServerDirectory string The full path to the directory containing PhantomJS.exe.
options OpenQA.Selenium.PhantomJS.PhantomJSOptions The used to initialize the driver.
commandTimeout System.TimeSpan The maximum amount of time to wait for each command.
return System