The first descendant matching selector, or null.
Runs pageFunction(elements, ...args) on every descendant matching selector.
Runs pageFunction(element, ...args) on the first descendant matching selector.
This handle as an :class when it references a DOM element, else null (synchronous).
The element's Chrome DevTools backend node id.
The element's bounding box in main-frame CSS pixels, or null when it is not rendered.
The element's content, padding, border and margin boxes, or null when it is not rendered.
Scrolls the element into view and clicks it.
Optionaloptions: ClickOptions & { offset?: Point }A point in the element that a click would hit, in main-frame CSS pixels.
Optionaloffset: PointReleases the handle. Disposing a disposed handle does nothing.
Drags from this element to target (a point or another element); returns the drag data when
Page.setDragInterception is on.
Drags this element and drops it on target.
Optionaloptions: { delay?: number }
delay: milliseconds between dragover and drop
Dispatches dragenter on this element with data; drag data with files is refused.
Optionaldata: DragDataDispatches dragover on this element with data; drag data with files is refused.
Optionaldata: DragDataDrops data (or the element being dragged) on this element; drag data with files is refused.
OptionaldataOrElement: DragData | ElementHandleRuns pageFunction(object, ...args) in the page and returns its result as JSON.
Focuses the element.
Scrolls the element into view and moves the mouse over it.
Whether the element is hidden.
Whether the element intersects the viewport.
Optionaloptions: { threshold?: number }Whether the element is visible.
The object as JSON (JSON.stringify in the page, then parsed); fails for objects that cannot be stringified.
Focuses the element and presses key (one key name, such as "Enter" or "ArrowLeft").
Optionaloptions: { delay?: number; text?: string }
delay between keydown and keyup, text
Scrolls the element into view and returns a screenshot of it as base64 text. path is ignored (no file is written) and
encoding is always "base64".
Optionaloptions: ScreenshotOptions
type ("png", "jpeg", "webp"), quality, omitBackground, clip, ...
Scrolls the element into view.
Selects values in a <select> element; returns the selected values.
Scrolls the element into view and taps it.
This handle when the element's tag is tagName (case-insensitive); fails otherwise.
A short description of the referenced object (synchronous).
Scrolls the element into view and ends the first active touch. Fails when no touch is active.
Scrolls the element into view and moves touch (or, without it, the first active touch) to the element's center. Fails
when no touch is active.
Optionaltouch: TouchHandleScrolls the element into view and starts a touch at its center; returns the started :class.
Focuses the element and types text.
Optionaloptions: { delay?: number }
delay between key presses in milliseconds
Waits for a descendant matching selector.
Optionaloptions: WaitForSelectorOptions
A reference to a DOM element in the page, returned by Page.$, Page.$$, Frame.$, Frame.waitForSelector and the element members below. Everything on :class applies.
pjsc differences:
screenshotignorespathand always returns base64 text.waitForSelectorends with the render; itssignaloption is ignored.dragEnter/dragOver/droprefuse drag data that names files, anddrag/dragAndDropfail when the browser's drag data names files.uploadFileand other members that read server files,$x(use thexpath/selector prefix), and members that reach the browser, its pages or the raw protocol.