The method runs element.querySelector within the page. If no element matches the selector, the return value resolve to null.
A selector to query element for
The method runs element.querySelectorAll within the page. If no elements match the selector, the return value resolve to [].
A selector to query element for
Returns a ElementHandle
This method returns the value resolve to the bounding box of the element (relative to the main frame), or null if the element is not visible.
This method returns boxes of the element, or null if the element is not visible. Boxes are represented as an array of points; each Point is an object {x, y}. Box points are sorted clock-wise.
This method scrolls element into view if needed, and then uses page.mouse to click in the center of the element. If the element is detached from DOM, the method throws an error.
Specifies the options.
Resolves to the content frame for element handles referencing iframe nodes, or null otherwise.
Stops referencing the element handle.
Gets the execution context.
Calls focus on the element.
Returns a map with property names as keys and JSHandle instances for the property values.
Fetches a single property from the objectHandle.
The property to get.
This method scrolls element into view if needed, and then uses page.mouse to hover over the center of the element. If the element is detached from DOM, the method throws an error.
Resolves to true if the element is visible in the current viewport.
Returns a JSON representation of the object. The JSON is generated by running JSON.stringify on the object in page and consequent JSON.parse in puppeteer.
Focuses the element, and then uses keyboard.down and keyboard.up.
Name of key to press, such as ArrowLeft. See USKeyboardLayout for a list of all key names.
The text and delay options.
This method scrolls element into view if needed, and then uses page.screenshot to take a screenshot of the element. If the element is detached from DOM, the method throws an error.
Same options as in page.screenshot.
This method scrolls element into view if needed, and then uses touchscreen.tap to tap in the center of the element. If the element is detached from DOM, the method throws an error.
Focuses the element, and then sends a keydown, keypress/input, and keyup event for each character in the text.
A text to type into a focused element.
The typing options.
This method expects elementHandle to point to an input element.
Sets the value of the file input these paths. If some of the filePaths are relative paths, then they are resolved relative to current working directory.
Represents an in-page DOM element. ElementHandles can be created with the page.$ method.