selenium-webdriver/chrome~ Driver#

Creates a new WebDriver client for Chrome.

Constructor#

new Driver()#

Methods#

(static) createSession(opt_configopt, opt_serviceExecutoropt) → (non-null) {Driver}#

Creates a new session with the ChromeDriver.

Parameters:
NameTypeAttributesDescription
opt_configCapabilities | Options<optional>

The configuration options.

opt_serviceExecutorremote.DriverService | http.Executor<optional>

Either a DriverService to use for the remote end, or a preconfigured executor for an externally managed endpoint. If neither is provided, the default service will be used by default.

Returns:

A new driver instance.

Type: 
Driver

(static) getDefaultService() → {remote.DriverService}#

returns new instance chrome driver service

Returns:
Type: 
remote.DriverService