evaluate
Evaluate a function in the context of the element.The element is passed as the first argument to the function. If the function returns a Promise, it will be awaited.
Function or string to evaluate in the page context.
Argument to pass to the function.
Return value
evaluateHandle
Evaluate a function and return a JSHandle to the result.The element is passed as the first argument. Note: Returns serialized handle reference. Full JSHandle support not yet available.
Function or string to evaluate in the page context.
Argument to pass to the function.
Return value
$eval
Evaluate a function on a child element matching the selector.Throws if no element matches. Discouraged in favor of locator.evaluate().
Return value
$$eval
Evaluate a function on all child elements matching the selector.Discouraged in favor of locator.evaluateAll().
Return value

