Trait freya_testing::prelude::NodeAccessibility

pub trait NodeAccessibility {
    // Required methods
    fn get_accessibility_id(&self) -> Option<NodeId>;
    fn get_inner_texts(&self) -> Option<String>;
    fn get_accessibility_children(&self) -> Vec<NodeId>;
}
Expand description

Shortcut functions to retrieve Acessibility info from a Dioxus Node

Required Methods§

fn get_accessibility_id(&self) -> Option<NodeId>

fn get_inner_texts(&self) -> Option<String>

Return the first text node from this Node

fn get_accessibility_children(&self) -> Vec<NodeId>

Collect all the AccessibilityIDs from a Node’s children

Implementations on Foreign Types§

§

impl NodeAccessibility for NodeRef<'_, CustomAttributeValues>

§

fn get_inner_texts(&self) -> Option<String>

Return the first text node from this Node

§

fn get_accessibility_children(&self) -> Vec<NodeId>

Collect all descendant accessibility node ids

§

fn get_accessibility_id(&self) -> Option<NodeId>

Implementors§