setConfig
Lets you configure global configurations.
Examples
setConfig( { observeTime: 3000});
Parameters
-
options
-
options.navigationTimeout
number -
Navigation timeout value in milliseconds for navigation after performing openTab, goto, reload, goBack, goForward, click, write, clear, press and evaluate.
- Default value
-
30000
-
options.observeTime
number -
Option to modify delay time in milliseconds for observe mode.
- Default value
-
3000
-
options.retryInterval
number -
Option to modify delay time in milliseconds to retry the search of element existence.
- Default value
-
100
-
options.retryTimeout
number -
Option to modify timeout in milliseconds while retrying the search of element existence.
- Default value
-
10000
-
options.observe
boolean -
Option to run each command after a delay. Useful to observe what is happening in the browser.
- Default value
-
false
-
options.waitForNavigation
boolean -
Wait for navigation after performing goto, click, doubleClick, rightClick, write, clear, press and evaluate.
- Default value
-
true
-
options.waitForEvents
Array<string> -
Wait for events after performing goto, click, doubleClick, rightClick, write, clear, press and evaluate. Events available to wait for ['DOMContentLoaded', 'loadEventFired', 'networkAlmostIdle', 'networkIdle', 'firstPaint', 'firstContentfulPaint', 'firstMeaningfulPaint', 'targetNavigated']
- Default value
-
[]
-
options.ignoreSSLErrors
boolean -
Option to ignore SSL errors encountered by the browser.
- Default value
-
true
-
options.headful
boolean -
Option to open browser in headless/headful mode.
- Default value
-
false
-
options.highlightOnAction
boolean -
Option to highlight an element on action.
- Default value
-
false
Returns
This API does not return any values