MCPcopy
hub / github.com/codeceptjs/CodeceptJS / defineTimeout

Method defineTimeout

lib/helper/WebDriver.js:1049–1051  ·  view source on GitHub ↗

* Set [WebDriver timeouts](https://webdriver.io/docs/timeouts.html) in realtime. * * Timeouts are expected to be passed as object: * * ```js * I.defineTimeout({ script: 5000 }); * I.defineTimeout({ implicit: 10000, pageLoad: 10000, script: 5000 }); * ``` * * @param {*} tim

(timeouts)

Source from the content-addressed store, hash-verified

1047 * @param {*} timeouts WebDriver timeouts object.
1048 */
1049 defineTimeout(timeouts) {
1050 return this._defineBrowserTimeout(this.browser, timeouts)
1051 }
1052
1053 _defineBrowserTimeout(browser, timeouts) {
1054 return browser.setTimeout(timeouts)

Callers 4

_startBrowserMethod · 0.95
_smartWaitMethod · 0.95
_locateMethod · 0.95
_startBrowserMethod · 0.80

Calls 1

_defineBrowserTimeoutMethod · 0.95

Tested by

no test coverage detected