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

Method amAcceptingPopups

lib/helper/Puppeteer.js:507–509  ·  view source on GitHub ↗

* Set the automatic popup response to Accept. * This must be set before a popup is triggered. * * ```js * I.amAcceptingPopups(); * I.click('#triggerPopup'); * I.acceptPopup(); * ```

()

Source from the content-addressed store, hash-verified

505 * ```
506 */
507 amAcceptingPopups() {
508 popupStore.actionType = 'accept'
509 }
510
511 /**
512 * Accepts the active JavaScript native popup window, as created by window.alert|window.confirm|window.prompt.

Callers 4

Playwright_test.jsFile · 0.45
Puppeteer_test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected