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

Method usePuppeteerTo

lib/helper/Puppeteer.js:493–495  ·  view source on GitHub ↗

* Use Puppeteer API inside a test. * * First argument is a description of an action. * Second argument is async function that gets this helper as parameter. * * { [`page`](https://github.com/puppeteer/puppeteer/blob/master/docs/api.md#class-page), [`browser`](https://github.com/puppet

(description, fn)

Source from the content-addressed store, hash-verified

491 * @param {function} fn async function that is executed with Puppeteer as argument
492 */
493 usePuppeteerTo(description, fn) {
494 return this._useTo(...arguments)
495 }
496
497 /**
498 * Set the automatic popup response to Accept.

Callers 1

Puppeteer_test.jsFile · 0.80

Calls 1

_useToMethod · 0.80

Tested by

no test coverage detected