import { Frame } from "https://deno.land/x/pptr@1.2.0/mod.ts";
At every point of time, page exposes its current frame tree via the Page.mainFrame | page.mainFrame and Frame.childFrames | frame.childFrames methods.
Constructors
Properties
Methods
This method queries the frame for the given selector.
This runs document.querySelectorAll
in the frame and returns the result.
This method evaluates the given XPath expression and returns the results.
Adds a <script>
tag into the page with the desired url or content.
Adds a <link rel="stylesheet">
tag into the page with the desired url or
a <style type="text/css">
tag with the content.
This method clicks the first element found that matches selector
.
This method fetches an element with selector
and focuses it.
This method fetches an element with selector
, scrolls it into view if
needed, and then uses Page.mouse to hover over the center of the
element.
Triggers a change
and input
event once all the provided options have
been selected.
Set the content of the frame.
This method fetches an element with selector
, scrolls it into view if
needed, and then uses Page.touchscreen to tap in the center of the
element.
Sends a keydown
, keypress
/input
, and keyup
event for each character
in the text.
Causes your script to wait for the given number of milliseconds.