import { ElementHandle } from "https://deno.land/x/astral@0.3.5/mod.ts";
ElementHandle represents an in-page DOM element.
Methods
Queries the current element for an element matching the given selector.
Queries the current element for all elements matching the given selector.
This method returns boxes of the element, or null
if the element is not visible.
This method scrolls element into view if needed, and then uses Page.mouse
to click in the center of the element.
Executes the given function or string whose first argument is a DOM element and returns the result of the execution.
Retrieve the attributes of an element. Returns the key-value object
This method scrolls element into view if needed, and then uses Page.screenshot()
to take a screenshot of the element.
Focuses the element, and then sends a keydown
, keypress
/input
, and keyup
event for each character in the text.
Wait for an element matching the given selector to appear in the current element.