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

Method useWebDriverTo

lib/helper/WebDriver.js:786–788  ·  view source on GitHub ↗

* Use [webdriverio](https://webdriver.io/docs/api.html) API inside a test. * * First argument is a description of an action. * Second argument is async function that gets this helper as parameter. * * { [`browser`](https://webdriver.io/docs/api.html)) } object from WebDriver API is av

(description, fn)

Source from the content-addressed store, hash-verified

784 * @param {function} fn async functuion that executed with WebDriver helper as argument
785 */
786 useWebDriverTo(description, fn) {
787 return this._useTo(...arguments)
788 }
789
790 async _failed() {
791 if (this.context !== this.root) await this._withinEnd()

Calls 1

_useToMethod · 0.80

Tested by

no test coverage detected