Module page
Expand description
Typed requests against a live page’s content.
Browser chrome turns its page actions into a PageRequest; the engine
answers with exactly one WebViewEvent::PageResult
carrying the same request id. Elements are addressed by the refs a prior
PageRequest::Outline printed. A ref names one element of one document,
so a ref from a page the tab has since left is refused rather than
resolved against whatever now sits at the same position.
Structs§
- Page
Failure - Why a page request did nothing.
codeis stable, such asstale_element,obscuredorunavailable. - PageKey
- One key plus modifiers, written as a chord such as
Enter,Shift+TaborControl+a. - Page
Reply - What a completed page request observed.
Enums§
Constants§
- MAX_
DATA_ BYTES - Upper bound on structured reply data (
PageReply::data), serialised. - MAX_
FILL_ BYTES - Upper bound on the text one fill may insert.
- MAX_
OUTLINE_ BYTES - Upper bound on an outline as it crosses the engine boundary.
- MAX_
SELECT_ VALUES - Upper bound on the options one select may choose.
- MAX_
SELECT_ VALUE_ BYTES - Upper bound on one option value or label.
- MAX_
SETTLE_ MS - MIN_
SETTLE_ QUIET_ MS - Bounds of a settle wait, milliseconds.
Functions§
- is_
element_ ref - Element refs are
d<document>e<element>: both parts are decimal, so a ref can never smuggle selector or script syntax to the engine.