Global

Members

(constant) defaults :DriverOptions

Source:
Type:

Type Definitions

DriverOptions

Properties:
Name Type Attributes Default Description
timeout number <optional>
1000

Timeout (in ms) for each call to driver.wait()

browser string <optional>
'chrome'

Browser to use with this driver

baseUrl string <optional>
'http://localhost:3000'

Base URL to test against

Set via environment variable: `BASE_URL`

`export BASE_URL=http://example.com`

`BASE_URL=http://example.com npm run myTestScript`

logLevel string <optional>
'SEVERE'

Log level for debug browser logs

Allowed values:

  • `'OFF'` - Turns off logging
  • `'SEVERE'` - Messages about things that went wrong. For instance, an unknown command.
  • `'WARNING'` - Messages about things that may be wrong but was handled. For instance, a handled exception.
  • `'INFO'` - Messages of an informative nature. For instance, information about received commands.
  • `'DEBUG'` - Messages for debugging. For instance, information about the state of the driver.
  • `'ALL'` - All log messages. A way to collect all information regardless of which log levels that are supported.
homePagePath string <optional>
'/'

Path to homepage. Visited on SeleniumDriver#start

debugDirectory string <optional>
'tmp/selenium-debug'

Directory to save debug logs and screenshots from failures

Source:
Type:
  • object