selenium-webdriver/chromium~ ServiceBuilder

Creates selenium-webdriver/remote.DriverService instances that manage a WebDriver server in a child process.

Constructor

new ServiceBuilder(exeopt)

Parameters:
NameTypeAttributesDescription
exestring<optional>

Path to the server executable to use. Subclasses should ensure a valid path to the appropriate exe is provided.

Methods

enableChromeLogging() → (non-null) {ServiceBuilder}

Enables Chrome logging.

Returns:

A self reference.

Type: 
ServiceBuilder

enableVerboseLogging() → (non-null) {ServiceBuilder}

Enables verbose logging.

Returns:

A self reference.

Type: 
ServiceBuilder

loggingTo(path) → (non-null) {ServiceBuilder}

Sets the path of the log file the driver should log to. If a log file is not specified, the driver will log to stderr.

Parameters:
NameTypeDescription
pathstring

Path of the log file to use.

Returns:

A self reference.

Type: 
ServiceBuilder

setAdbPort(port) → (non-null) {ServiceBuilder}

Sets which port adb is listening to. The driver will connect to adb if an Android session is requested, but adb must be started beforehand.

Parameters:
NameTypeDescription
portnumber

Which port adb is running on.

Returns:

A self reference.

Type: 
ServiceBuilder

setNumHttpThreads(n) → (non-null) {ServiceBuilder}

Sets the number of threads the driver should use to manage HTTP requests. By default, the driver will use 4 threads.

Parameters:
NameTypeDescription
nnumber

The number of threads to use.

Returns:

A self reference.

Type: 
ServiceBuilder

setPath()