Enum PageRequest
pub enum PageRequest {
Outline,
Click {
element: String,
},
Fill {
element: String,
text: String,
secret: bool,
},
Select {
element: String,
values: Vec<String>,
},
Press {
element: Option<String>,
key: PageKey,
},
Submit {
element: String,
cross_origin: bool,
},
Changes,
At {
x: f64,
y: f64,
},
Settle {
quiet_ms: u32,
timeout_ms: u32,
},
Console {
since: u64,
},
Network {
since: u64,
},
}Variants§
Outline
A compact accessibility outline of the document. Interactive elements carry the refs every other request addresses.
Click
A trusted pointer click at the element’s visible centre.
Fill
Replace an editable element’s contents with text. A password or
card field is refused unless secret says the caller means it, and
then the text is a secret the caller keeps out of logs.
Select
Choose <select> options by value or visible label.
Press
A trusted key press, after focusing element when one is named.
Submit
Submit the element’s form through the page’s own validation. A form
that sends its data to another site than the page’s is refused unless
cross_origin says the caller means it.
Changes
What changed in the outline since this tab’s last read or changes:
lines added (+) and removed (-), or the whole outline when the
document is new.
At
The element a click at viewport point (x, y) in CSS pixels would
hit, and the nearest interactive element holding it.
Settle
Wait until the document has stopped changing for quiet_ms and has
loaded, or timeout_ms passed.
Console
Console messages and uncaught errors after sequence number since.
Network
Network requests after sequence number since: method, URL, type,
status and failure, never headers, bodies or cookies.
Implementations§
Trait Implementations§
§impl Clone for PageRequest
impl Clone for PageRequest
§fn clone(&self) -> PageRequest
fn clone(&self) -> PageRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for PageRequest
impl Debug for PageRequest
§impl PartialEq for PageRequest
impl PartialEq for PageRequest
impl StructuralPartialEq for PageRequest
Auto Trait Implementations§
impl Freeze for PageRequest
impl RefUnwindSafe for PageRequest
impl Send for PageRequest
impl Sync for PageRequest
impl Unpin for PageRequest
impl UnsafeUnpin for PageRequest
impl UnwindSafe for PageRequest
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more