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

Method openNewTab

lib/helper/Puppeteer.js:1176–1179  ·  view source on GitHub ↗

* Open new tab and switch to it * * ```js * I.openNewTab(); * ```

()

Source from the content-addressed store, hash-verified

1174 * ```
1175 */
1176 async openNewTab() {
1177 await this._setPage(await this.browser.newPage())
1178 return this._waitForAction()
1179 }
1180
1181 /**
1182 * {{> grabNumberOfOpenTabs }}

Calls 2

_setPageMethod · 0.95
_waitForActionMethod · 0.95

Tested by

no test coverage detected