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

Method amCancellingPopups

lib/helper/Puppeteer.js:530–532  ·  view source on GitHub ↗

* Set the automatic popup response to Cancel/Dismiss. * This must be set before a popup is triggered. * * ```js * I.amCancellingPopups(); * I.click('#triggerPopup'); * I.cancelPopup(); * ```

()

Source from the content-addressed store, hash-verified

528 * ```
529 */
530 amCancellingPopups() {
531 popupStore.actionType = 'cancel'
532 }
533
534 /**
535 * Dismisses the active JavaScript popup, 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