C# 클래스 OpenQA.Selenium.Firefox.FirefoxDriver

Provides a way to access Firefox to run tests.
When the FirefoxDriver object has been instantiated the browser will load. The test can then navigate to the URL under test and start your test.

In the case of the FirefoxDriver, you can specify a named profile to be used, or you can let the driver create a temporary, anonymous profile. A custom extension allowing the driver to communicate to the browser will be installed into the profile.

상속: OpenQA.Selenium.Remote.RemoteWebDriver, ITakesScreenshot
파일 보기 프로젝트 열기: asynchrony/Selenium2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AcceptUntrustedCertificates bool
DefaultEnableNativeEvents bool
DefaultPort int

공개 메소드들

메소드 설명
FirefoxDriver ( ) : System

Initializes a new instance of the FirefoxDriver class.

FirefoxDriver ( OpenQA.Selenium.Firefox.FirefoxBinary binary, FirefoxProfile profile ) : System

Initializes a new instance of the FirefoxDriver class for a given profile and binary environment.

FirefoxDriver ( OpenQA.Selenium.Firefox.FirefoxBinary binary, FirefoxProfile profile, System.TimeSpan commandTimeout ) : System

Initializes a new instance of the FirefoxDriver class for a given profile, binary environment, and timeout value.

FirefoxDriver ( FirefoxProfile profile ) : System

Initializes a new instance of the FirefoxDriver class for a given profile.

GetScreenshot ( ) : Screenshot

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

보호된 메소드들

메소드 설명
CreateElement ( string elementId ) : RemoteWebElement

Creates a RemoteWebElement with the specified ID.

PrepareEnvironment ( ) : void

In derived classes, the PrepareEnvironment method prepares the environment for test execution.

StartClient ( ) : void

Starts the command executor, enabling communication with the browser.

StopClient ( ) : void

Stops the command executor, ending further communication with the browser.

비공개 메소드들

메소드 설명
CreateExtensionConnection ( OpenQA.Selenium.Firefox.FirefoxBinary binary, FirefoxProfile profile, System.TimeSpan commandTimeout ) : ExtensionConnection

메소드 상세

CreateElement() 보호된 메소드

Creates a RemoteWebElement with the specified ID.
protected CreateElement ( string elementId ) : RemoteWebElement
elementId string The ID of this element.
리턴 OpenQA.Selenium.Remote.RemoteWebElement

FirefoxDriver() 공개 메소드

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

FirefoxDriver() 공개 메소드

Initializes a new instance of the FirefoxDriver class for a given profile and binary environment.
public FirefoxDriver ( OpenQA.Selenium.Firefox.FirefoxBinary binary, FirefoxProfile profile ) : System
binary OpenQA.Selenium.Firefox.FirefoxBinary A object representing the operating system /// environmental settings used when running Firefox.
profile FirefoxProfile A object representing the profile settings /// to be used in starting Firefox.
리턴 System

FirefoxDriver() 공개 메소드

Initializes a new instance of the FirefoxDriver class for a given profile, binary environment, and timeout value.
public FirefoxDriver ( OpenQA.Selenium.Firefox.FirefoxBinary binary, FirefoxProfile profile, System.TimeSpan commandTimeout ) : System
binary OpenQA.Selenium.Firefox.FirefoxBinary A object representing the operating system /// environmental settings used when running Firefox.
profile FirefoxProfile A object representing the profile settings /// to be used in starting Firefox.
commandTimeout System.TimeSpan The maximum amount of time to wait for each command.
리턴 System

FirefoxDriver() 공개 메소드

Initializes a new instance of the FirefoxDriver class for a given profile.
public FirefoxDriver ( FirefoxProfile profile ) : System
profile FirefoxProfile A object representing the profile settings /// to be used in starting Firefox.
리턴 System

GetScreenshot() 공개 메소드

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

PrepareEnvironment() 보호된 메소드

In derived classes, the PrepareEnvironment method prepares the environment for test execution.
protected PrepareEnvironment ( ) : void
리턴 void

StartClient() 보호된 메소드

Starts the command executor, enabling communication with the browser.
protected StartClient ( ) : void
리턴 void

StopClient() 보호된 메소드

Stops the command executor, ending further communication with the browser.
protected StopClient ( ) : void
리턴 void

프로퍼티 상세

AcceptUntrustedCertificates 공개적으로 정적으로 프로퍼티

Indicates whether the driver will accept untrusted SSL certificates.
public static bool AcceptUntrustedCertificates
리턴 bool

DefaultEnableNativeEvents 공개적으로 정적으로 프로퍼티

Indicates whether native events is enabled by default for this platform.
public static bool DefaultEnableNativeEvents
리턴 bool

DefaultPort 공개적으로 정적으로 프로퍼티

The default port on which to communicate with the Firefox extension.
public static int DefaultPort
리턴 int