JSHandle
Playwright\JSHandle\JSHandleInterface
Methods
asElement()
?objectReturns the element handle if this is an element, null otherwise.
function asElement(): ?object
dispose()
voidDisposes the handle.
function dispose(): void
evaluate()
mixedEvaluates expression in the context of the handle.
function evaluate(string $expression, mixed $arg = null): mixed
evaluateHandle()
JSHandleInterfaceEvaluates expression in the context of the handle and returns a JSHandle.
function evaluateHandle(string $expression, mixed $arg = null): JSHandleInterface
getProperties()
arrayReturns a map with property names as keys and JSHandle instances for the property values.
function getProperties(): array
getProperty()
JSHandleInterfaceFetches a single property from the referenced object.
function getProperty(string $propertyName): JSHandleInterface
jsonValue()
mixedReturns a JSON representation of the object.
function jsonValue(): mixed