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
Afficher le fichier Open project: krosenvold/selenium-git-release-candidate Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

PhantomJSDriver() public méthode

Initializes a new instance of the PhantomJSDriver class.
public PhantomJSDriver ( ) : System
Résultat System

PhantomJSDriver() public méthode

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.
Résultat System

PhantomJSDriver() public méthode

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.
Résultat System

PhantomJSDriver() public méthode

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.
Résultat System

PhantomJSDriver() public méthode

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.
Résultat System

PhantomJSDriver() public méthode

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.
Résultat System

PhantomJSDriver() public méthode

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.
Résultat System