MCPcopy
hub / github.com/vercel/next.js / beforePageLoad

Method beforePageLoad

test/lib/next-modes/base.ts:866–874  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

864 webdriver(this.url, url, {
865 ...options,
866 async beforePageLoad(page: Page) {
867 await options.beforePageLoad?.(page)
868
869 page.on('response', async (response) => {
870 if (response.url() === absoluteUrl) {
871 resolveResponse(response)
872 }
873 })
874 },
875 }),
876 responsePromise,
877 ])

Callers 1

loadPageMethod · 0.80

Calls 2

urlMethod · 0.65
onMethod · 0.45

Tested by

no test coverage detected