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

Method usePlaywrightTo

lib/helper/Playwright.js:1009–1011  ·  view source on GitHub ↗

* Use Playwright 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/microsoft/playwright/blob/main/docs/src/api/class-page.md), [`browserContext`](https://github

(description, fn)

Source from the content-addressed store, hash-verified

1007 * @param {function} fn async function that executed with Playwright helper as arguments
1008 */
1009 usePlaywrightTo(description, fn) {
1010 return this._useTo(...arguments)
1011 }
1012
1013 /**
1014 * Set the automatic popup response to Accept.

Callers 3

Playwright_test.jsFile · 0.80

Calls 1

_useToMethod · 0.80

Tested by

no test coverage detected