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

Method grabPopupText

lib/helper/Puppeteer.js:621–626  ·  view source on GitHub ↗

* Grab the text within the popup. If no popup is visible then it will return null * * ```js * await I.grabPopupText(); * ``` * @return {Promise }

()

Source from the content-addressed store, hash-verified

619 * @return {Promise<string | null>}
620 */
621 async grabPopupText() {
622 if (popupStore.popup) {
623 return popupStore.popup.message()
624 }
625 return null
626 }
627
628 async _startBrowser() {
629 this.debugSection('Puppeteer', `Starting browser. Puppeteer available: ${!!puppeteer}, launch available: ${!!puppeteer?.launch}`)

Calls

no outgoing calls

Tested by

no test coverage detected