MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / _smartWait

Method _smartWait

lib/helper/WebDriver.js:877–880  ·  view source on GitHub ↗

* Smart Wait to locate an element * * @param {object} locator

(locator)

Source from the content-addressed store, hash-verified

875 * @param {object} locator
876 */
877 async _smartWait(locator) {
878 this.debugSection(`SmartWait (${this.options.smartWait}ms)`, `Locating ${JSON.stringify(locator)} in ${this.options.smartWait}`)
879 await this.defineTimeout({ implicit: this.options.smartWait })
880 }
881
882 /**
883 * Get elements by different locator types, including strict locator.

Callers 1

_locateMethod · 0.95

Calls 1

defineTimeoutMethod · 0.95

Tested by

no test coverage detected