Class webdriver.Builder
Extends
.
Defined in: builder.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
<static> |
webdriver.Builder.SESSION_ID_ENV
Environment variable that defines the session ID of an existing WebDriver
session to use when creating clients.
|
Method Attributes | Method Name and Description |
---|---|
build()
|
|
usingSession(id)
Configures the builder to create a client that will use an existing WebDriver
session.
|
Field Detail
<static>
webdriver.Builder.SESSION_ID_ENV
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 {@code #useExistingSession(boolean)}. The use of this environment
variable requires that webdriver.AbstractBuilder.SERVER_URL_ENV also
be set.
Method Detail
build()
{string}
getSession()
- Returns:
- {string} The ID of the session, if any, this builder is configured to reuse.
{!webdriver.AbstractBuilder}
usingSession(id)
Configures the builder to create a client that will use an existing WebDriver
session.
- Parameters:
- {string} id
- The existing session ID to use.
- Returns:
- {!webdriver.AbstractBuilder} This Builder instance for chain calling.