Returns when the pageFunction returns a truthy value.
Parameter | Type | Default | Description |
---|---|---|---|
pageFunction | function | Function to be evaluated in the page context. | |
arg | string | '' | Optional argument to pass to pageFunction |
options | object | null |
Returns
Type | Description |
---|---|
Promise<JSHandle> | The JSHandle instance associated with the page. |