Kreuzcrawl. PageAction
(kreuzcrawl v0.3.0-rc.37)
Copy Markdown
A single page interaction action.
Actions are serialized with a type tag using camelCase naming,
except ExecuteJs which is explicitly renamed to "executeJs".
Summary
Types
Click on an element matching the given CSS selector.
Execute arbitrary JavaScript in the page context.
Press a keyboard key (e.g. "Enter", "Tab", "Escape").
Scrape the current page HTML.
Take a screenshot of the current page.
Scroll the page or a specific element.
A single page interaction action.
Type text into an element matching the given CSS selector.
Wait for a duration or for an element to appear.
Types
@type click() :: %{type: :click, selector: String.t()}
Click on an element matching the given CSS selector.
@type execute_js() :: %{type: :execute_js, script: String.t()}
Execute arbitrary JavaScript in the page context.
@type press() :: %{type: :press, key: String.t()}
Press a keyboard key (e.g. "Enter", "Tab", "Escape").
@type scrape() :: :scrape
Scrape the current page HTML.
@type screenshot() :: %{type: :screenshot, full_page: boolean()}
Take a screenshot of the current page.
Scroll the page or a specific element.
@type t() :: term()
A single page interaction action.
Type text into an element matching the given CSS selector.
Wait for a duration or for an element to appear.