# Module selenium-webdriver/chrome

code »

## Classes

Driver Creates a new WebDriver client for Chrome. Options Class for managing ChromeDriver specific options. ServiceBuilder Creates `remote.DriverService` instances that manage a ChromeDriver server.

Show:Public Protected Private

## Functions

code »createDriver ( opt_options, opt_service, opt_flow ) ⇒ `!webdriver.WebDriver`
Deprecated: Use `new Driver()`.

Creates a new ChromeDriver session.

Parameters
opt_options: `(webdriver.Capabilities|Options)=` The session options. opt_service: `remote.DriverService=` The session to use; will use the `default service` by default. opt_flow: `webdriver.promise.ControlFlow=` The control flow to use, or `null` to use the currently active flow.
Returns
A new WebDriver instance.

code »getDefaultService ( ) ⇒ `!remote.DriverService`

Returns the default ChromeDriver service. If such a service has not been configured, one will be constructed using the default configuration for a ChromeDriver executable found on the system PATH.

Returns
The default ChromeDriver service.

code »setDefaultService ( service )

Sets the default service to use for new ChromeDriver instances.

Parameters
service: `!remote.DriverService` The service to use.
Throws
`Error` If the default service is currently running.