pub struct InteractiveElement {
pub index: usize,
pub tag: String,
pub role: Option<String>,
pub text: String,
pub placeholder: Option<String>,
pub input_type: Option<String>,
pub selector: String,
pub checked: bool,
pub value: Option<String>,
pub bbox: BoundingBox,
pub fingerprint: u64,
}Expand description
An interactive element on the page, identified by index.
Fields§
§index: usizeZero-based index (stable until next observe())
tag: StringHTML tag name (e.g. “button”, “input”, “a”)
role: Option<String>ARIA role if set
text: StringVisible text content, truncated to 60 chars
placeholder: Option<String>Placeholder attribute for inputs
input_type: Option<String>Input type (only for <input> and <select> elements)
selector: StringUnique CSS selector for this element
checked: boolWhether the element is checked (radio/checkbox)
value: Option<String>Current value of form element (None if empty or non-form)
bbox: BoundingBoxBounding box in viewport coordinates
fingerprint: u64Fingerprint for stale element detection (hash of tag+text+attributes)
Implementations§
Trait Implementations§
Source§impl Clone for InteractiveElement
impl Clone for InteractiveElement
Source§fn clone(&self) -> InteractiveElement
fn clone(&self) -> InteractiveElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InteractiveElement
impl Debug for InteractiveElement
Auto Trait Implementations§
impl Freeze for InteractiveElement
impl RefUnwindSafe for InteractiveElement
impl Send for InteractiveElement
impl Sync for InteractiveElement
impl Unpin for InteractiveElement
impl UnsafeUnpin for InteractiveElement
impl UnwindSafe for InteractiveElement
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.