pub enum Selector {
SemanticIdentifier {
identifier: String,
},
WidgetId {
widget_id: String,
},
TestId {
test_id: String,
},
AccessibilityIdentifier {
identifier: String,
},
RoleLabel {
role: String,
label: String,
},
Label {
label: String,
},
}Expand description
A high-level selector for resolving semantic nodes without manual coordinates.
Variants§
SemanticIdentifier
Match [fission_ir::Semantics::identifier].
WidgetId
Match a stable widget id. Accepts a 32-character raw id or an explicit id key.
TestId
Match a stable test identifier. This currently aliases semantic identifier.
AccessibilityIdentifier
Match an accessibility identifier. This currently aliases semantic identifier.
RoleLabel
Match by role and label.
Label
Match by label only.
Implementations§
Source§impl Selector
impl Selector
pub fn semantic_identifier(identifier: impl Into<String>) -> Self
pub fn widget_id(widget_id: impl Into<String>) -> Self
pub fn test_id(test_id: impl Into<String>) -> Self
pub fn accessibility_identifier(identifier: impl Into<String>) -> Self
pub fn role_label(role: impl Into<String>, label: impl Into<String>) -> Self
pub fn label(label: impl Into<String>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Selector
impl<'de> Deserialize<'de> for Selector
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
impl Eq for Selector
impl StructuralPartialEq for Selector
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnsafeUnpin for Selector
impl UnwindSafe for Selector
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