Skip to main content

Type Alias: CheckPageLoadCallback

CheckPageLoadCallback = (page) => Promise\<boolean>

Defined in: core/src/lib/Types.ts:1169

Callback function to provide if the page is loaded. For concrete example, check out isPageLoaded.

Parameters

page

Page

puppeteer's Page object. To import this type, check out Page.

Returns

Promise\<boolean>

a boolean value, if it returns true, memlab will consider the navigation completes, if it returns false, memlab will keep calling this callback until it returns true. This is an async callback, you can also await and returns true until some async logic is resolved.