C# 클래스 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.
상속: OpenQA.Selenium.Remote.RemoteWebDriver, ITakesScreenshot
파일 보기 프로젝트 열기: krosenvold/selenium-git-release-candidate 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

GetScreenshot() 공개 메소드

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

PhantomJSDriver() 공개 메소드

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

PhantomJSDriver() 공개 메소드

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.
리턴 System

PhantomJSDriver() 공개 메소드

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.
리턴 System

PhantomJSDriver() 공개 메소드

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.
리턴 System

PhantomJSDriver() 공개 메소드

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.
리턴 System

PhantomJSDriver() 공개 메소드

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.
리턴 System

PhantomJSDriver() 공개 메소드

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.
리턴 System