Skip to main content

find_button

Function find_button 

Source
pub fn find_button(
    elem: &SemanticElement,
    text: &str,
) -> Option<(f32, f32, f32, f32)>
Expand description

Find a clickable element (button) containing the specified text.

Matches elements where clickable == true AND the element (or its children) contains the text. Returns bounds (x, y, width, height).