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