Skip to main content

enter_value

Function enter_value 

Source
pub fn enter_value(verb: Verb, selector: &str, value: &str)
Expand description

The value a visitor’s Type/Choose leaves in the control selector names before the verb raises its events — the browser’s own default action of typing (the text replaces what the field held) and of choosing (the option whose value, or else whose text, is value becomes the select’s value). Recorder state rather than an op: it is the visitor’s act on the document, not something the page asked for. Other verbs, a control the verb cannot act on (answers_by_itself), and a choice no option offers, leave it alone.