Skip to main content
Version: 1.x

Interface: ObjectPagePage

Minimal page interface for Object Page operations.

Example

const page: ObjectPagePage = { evaluate: async () => ({}), waitForFunction: async () => ({}) };

Methods

evaluate()

evaluate<TResult>(pageFunction, arg?): Promise<TResult>

Executes a script in the browser context and returns the result.

Type Parameters

TResult

TResult

Parameters

pageFunction

string

arg?

unknown

Returns

Promise<TResult>


waitForFunction()

waitForFunction(pageFunction, arg?, options?): Promise<unknown>

Waits until a browser-side predicate returns a truthy value.

Parameters

pageFunction

string

arg?

unknown

options?
polling?

number

timeout?

number

Returns

Promise<unknown>