pub struct LocatorMatch {
pub ref_id: String,
pub tag: String,
pub role: Option<String>,
pub name: Option<String>,
pub text: Option<String>,
pub visible: bool,
pub enabled: bool,
pub value: Option<String>,
pub bounds: Option<Bounds>,
}Expand description
A single element resolved from a Locator query.
Fields§
§ref_id: StringRef handle ID used to target this element in subsequent actions.
tag: StringHTML tag name (e.g. "button", "input").
role: Option<String>ARIA role, if present.
name: Option<String>Accessible name, if present.
text: Option<String>Visible text content, if any.
visible: boolWhether the element is currently visible.
enabled: boolWhether the element is currently enabled (not disabled).
value: Option<String>Form control value, if applicable.
bounds: Option<Bounds>Bounding rectangle in CSS pixels.
Trait Implementations§
Source§impl Clone for LocatorMatch
impl Clone for LocatorMatch
Source§fn clone(&self) -> LocatorMatch
fn clone(&self) -> LocatorMatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LocatorMatch
impl Debug for LocatorMatch
Source§impl<'de> Deserialize<'de> for LocatorMatch
impl<'de> Deserialize<'de> for LocatorMatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LocatorMatch
impl RefUnwindSafe for LocatorMatch
impl Send for LocatorMatch
impl Sync for LocatorMatch
impl Unpin for LocatorMatch
impl UnsafeUnpin for LocatorMatch
impl UnwindSafe for LocatorMatch
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