Class SeleniumServer
code »DriverService
└ SeleniumServerManages the life and death of the Selenium standalone server. The server may be obtained from http://selenium-release.storage.googleapis.com/index.html.
Constructor
Show:
Type Definitions
code »SeleniumServer.Options : {port: (number|!webdriver.promise.Promise.<number>), args: !(Array.<string>|webdriver.promise.Promise), jvmArgs: (!Array.<string>|!webdriver.promise.Promise|undefined), env: (!Object.<string, string>|undefined), stdio: (string|!Array|undefined)}Options for the Selenium server:
port - The port to start the server on (must be > 0). If the
port is provided as a promise, the service will wait for the promise to
resolve before starting.
args - The arguments to pass to the service. If a promise is
provided, the service will wait for it to resolve before starting.
jvmArgs - The arguments to pass to the JVM. If a promise is
provided, the service will wait for it to resolve before starting.
env - The environment variables that should be visible to the
server process. Defaults to inheriting the current process's
environment.
stdio - IO configuration for the spawned server process. For
more information, refer to the documentation of
child_process.spawn.
{port: (number|!webdriver.promise.Promise.<number>), args: !(Array.<string>|webdriver.promise.Promise), jvmArgs: (!Array.<string>|!webdriver.promise.Promise|undefined), env: (!Object.<string, string>|undefined), stdio: (string|!Array|undefined)}port- The port to start the server on (must be > 0). If the port is provided as a promise, the service will wait for the promise to resolve before starting.args- The arguments to pass to the service. If a promise is provided, the service will wait for it to resolve before starting.jvmArgs- The arguments to pass to the JVM. If a promise is provided, the service will wait for it to resolve before starting.env- The environment variables that should be visible to the server process. Defaults to inheriting the current process's environment.stdio- IO configuration for the spawned server process. For more information, refer to the documentation ofchild_process.spawn.
Instance Methods
code »address ( ) ⇒ !webdriver.promise.Promise.<string>
!webdriver.promise.Promise.<string>| Returns |
|---|
|
| Throws |
|
Stops the service if it is not currently running. This function will kill
the server immediately. To synchronize with the active control flow, use
#stop().
#stop().| Returns |
|---|
|
code »start ( opt_timeoutMs ) ⇒ !webdriver.promise.Promise.<string>Starts the server if it is not already running.
!webdriver.promise.Promise.<string>| Parameters |
|---|
|
| Returns |
|
Schedules a task in the current control flow to stop the server if it is
currently running.
| Returns |
|---|
|