MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / waitForNavigation

Method waitForNavigation

lib/helper/Puppeteer.js:2723–2730  ·  view source on GitHub ↗

* Waits for navigation to finish. By default, takes configured `waitForNavigation` option. * * See [Puppeteer's reference](https://github.com/puppeteer/puppeteer/blob/main/docs/api/puppeteer.page.waitfornavigation.md) * * @param {*} opts

(opts = {})

Source from the content-addressed store, hash-verified

2721 * @param {*} opts
2722 */
2723 async waitForNavigation(opts = {}) {
2724 opts = {
2725 timeout: this.options.getPageTimeout,
2726 waitUntil: this.options.waitForNavigation,
2727 ...opts,
2728 }
2729 return this.page.waitForNavigation(opts)
2730 }
2731
2732 async waitUntilExists(locator, sec) {
2733 console.log(`waitUntilExists deprecated:

Callers 4

proceedClickFunction · 0.45
testsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected