Skip to main content

Module browser_click_approval

Module browser_click_approval 

Source
Expand description

The person’s approval of a committing click (browser spec §5.4): a click that submits a form, or a button named like Send, Pay or Delete, waits for them in its pane’s banner. act clicks and Browser capture of a download use it.

Structs§

Asked 🔒
A committing click’s request, put up and not yet answered: what settling the answer needs.

Enums§

ClickRefused 🔒
Why a committing click wasn’t approved: the banner couldn’t be raised, or the person answered (how, when the Log says so) no, too late, or took the pane over.

Constants§

WAIT 🔒
How long the person has to answer an approval.

Functions§

approve_click 🔒
Asks the person to approve the committing click ask describes, in its pane’s banner (spec §5.4). Ok holds the pane locked until it is dropped, so the form can’t change between what they approved and what is sent; make the approved click before dropping it.
ask_then_click 🔒
The tail of a committing click that wasn’t let through: ask the person about ask, then make the click the same way once they approve (approved_body, sent to the host’s route, carries what they were shown). Used by act and by Enter and Space taken as a click.
ask_then_click_within 🔒
ask_then_click with the grace given (the tests’, which don’t wait 8 s).
question_of 🔒
The question the agent is told it waits on: the click’s own words and its page.
raise_approval 🔒
Put the approval of the committing click ask describes up in its pane’s banner (spec §5.4) without waiting for the answer. The summary is shown, not the fingerprint of everything the click sends (hidden controls included): that stays in ask, for the host’s check before the approved click.
refused_state 🔒
The state a click that wasn’t made leaves its request in.
settle_approval 🔒
What the person’s answer means for the click: Ok holds the pane locked (the returned [Waiting]) for the click to be made; Err says why there is none.
shown_to_ask 🔒
A background session the click asks about is shown before the question goes up; refused at once when it cannot be.
where_text 🔒
Where the approved click left the page, for the agent’s note.