Class webdriver.Builder

code »
webdriver.AbstractBuilder
  └ webdriver.Builder

Constructor

webdriver.Builder ( )
Show:

Instance Methods

Defined in webdriver.Builder

code »build ( )webdriver.WebDriver
Returns
The ID of the session, if any, this builder is configured to reuse.

Configures the builder to create a client that will use an existing WebDriver session.

Parameters
id: string
The existing session ID to use.
Returns
This Builder instance for chain calling.

Defined in webdriver.AbstractBuilder

Returns
The current desired capabilities for this builder.
Returns
The URL of the WebDriver server this instance is configured to use.

Configures which WebDriver server should be used for new sessions. Overrides the value loaded from the webdriver.AbstractBuilder.SERVER_URL_ENV upon creation of this instance.

Parameters
url: string
URL of the server to use.
Returns
This Builder instance for chain calling.

Sets the desired capabilities when requesting a new session. This will overwrite any previously set desired capabilities.

Parameters
capabilities: !(Object|webdriver.Capabilities)
The desired capabilities for a new session.
Returns
This Builder instance for chain calling.

Instance Properties

Defined in webdriver.Builder

ID of an existing WebDriver session that new clients should use. Initialized from the value of the webdriver.AbstractBuilder.SESSION_ID_ENV environment variable, but may be overridden using webdriver.AbstractBuilder#usingSession.

Defined in webdriver.AbstractBuilder

The desired capabilities to use when creating a new session.

URL of the remote server to use for new clients; initialized from the value of the webdriver.AbstractBuilder.SERVER_URL_ENV environment variable, but may be overridden using webdriver.AbstractBuilder#usingServer.

Static Properties

Environment variable that defines the session ID of an existing WebDriver session to use when creating clients. If set, all new Builder instances will default to creating clients that use this session. To create a new session, use #useExistingSession(boolean). The use of this environment variable requires that webdriver.AbstractBuilder.SERVER_URL_ENV also be set.