class Playwright::JSHandle

def evaluate_handle(expression, arg: nil)

See [`method: Page.evaluateHandle`] for more details.

for the promise to resolve and return its value.
If the function passed to the `jsHandle.evaluateHandle` returns a [Promise], then `jsHandle.evaluateHandle` would wait

The only difference between `jsHandle.evaluate` and `jsHandle.evaluateHandle` is that `jsHandle.evaluateHandle` returns `JSHandle`.

This method passes this handle as the first argument to `expression`.

Returns the return value of `expression` as a `JSHandle`.
def evaluate_handle(expression, arg: nil)
  wrap_impl(@impl.evaluate_handle(unwrap_impl(expression), arg: unwrap_impl(arg)))
end