This method runs Array.from(document.querySelectorAll(selector))
within the context and passes it as the
first argument to pageFunction
.
If pageFunction
returns a Promise, then $$eval
would wait for the promise to resolve and return its value.
A selector to query for
Function to be evaluated in browser context
Promise which resolves to the return value of pageFunction
This method runs Array.from(document.querySelectorAll(selector))
within the context and passes it as the
first argument to pageFunction
.
If pageFunction
returns a Promise, then $$eval
would wait for the promise to resolve and return its value.
A selector to query for
Function to be evaluated in browser context
First argument to pass to pageFunction
Promise which resolves to the return value of pageFunction
This method runs Array.from(document.querySelectorAll(selector))
within the context and passes it as the
first argument to pageFunction
.
If pageFunction
returns a Promise, then $$eval
would wait for the promise to resolve and return its value.
A selector to query for
Function to be evaluated in browser context
First argument to pass to pageFunction
Second argument to pass to pageFunction
Promise which resolves to the return value of pageFunction
This method runs Array.from(document.querySelectorAll(selector))
within the context and passes it as the
first argument to pageFunction
.
If pageFunction
returns a Promise, then $$eval
would wait for the promise to resolve and return its value.
A selector to query for
Function to be evaluated in browser context
First argument to pass to pageFunction
Second argument to pass to pageFunction
Third argument to pass to pageFunction
Promise which resolves to the return value of pageFunction
This method runs Array.from(document.querySelectorAll(selector))
within the context and passes it as the
first argument to pageFunction
.
If pageFunction
returns a Promise, then $$eval
would wait for the promise to resolve and return its value.
A selector to query for
Function to be evaluated in browser context
Arguments to pass to pageFunction
Promise which resolves to the return value of pageFunction
This method runs document.querySelector
within the context and passes it as the first argument to pageFunction
.
If there's no element matching selector
, the method throws an error.
If pageFunction
returns a Promise, then $eval
would wait for the promise to resolve and return its value.
A selector to query for
Function to be evaluated in browser context
Promise which resolves to the return value of pageFunction
This method runs document.querySelector
within the context and passes it as the first argument to pageFunction
.
If there's no element matching selector
, the method throws an error.
If pageFunction
returns a Promise, then $eval
would wait for the promise to resolve and return its value.
A selector to query for
Function to be evaluated in browser context
First argument to pass to pageFunction
Promise which resolves to the return value of pageFunction
This method runs document.querySelector
within the context and passes it as the first argument to pageFunction
.
If there's no element matching selector
, the method throws an error.
If pageFunction
returns a Promise, then $eval
would wait for the promise to resolve and return its value.
A selector to query for
Function to be evaluated in browser context
First argument to pass to pageFunction
Second argument to pass to pageFunction
Promise which resolves to the return value of pageFunction
This method runs document.querySelector
within the context and passes it as the first argument to pageFunction
.
If there's no element matching selector
, the method throws an error.
If pageFunction
returns a Promise, then $eval
would wait for the promise to resolve and return its value.
A selector to query for
Function to be evaluated in browser context
First argument to pass to pageFunction
Second argument to pass to pageFunction
Third argument to pass to pageFunction
Promise which resolves to the return value of pageFunction
This method runs document.querySelector
within the context and passes it as the first argument to pageFunction
.
If there's no element matching selector
, the method throws an error.
If pageFunction
returns a Promise, then $eval
would wait for the promise to resolve and return its value.
A selector to query for
Function to be evaluated in browser context
Arguments to pass to pageFunction
Promise which resolves to the return value of pageFunction
Generated using TypeDoc
Defines
$eval
and$$eval
for Page, Frame and ElementHandle.