jacket
Search the docs
/
API
Tools
Playground
0.31.0
UI module
← UI
Headless
headless
resize
find
find_label
find_role
click
click_at
layout_dump
On this page
See also
std
/
Extensions
/
UI
/
find_role
find_role
procedure · 1 overload
since 0.31.0
Source
The nth node with this role.
ui: the UI to search.
role: the role to match.
index: which match to take, from 0.
find_role
:: (ui: *
UI_State
, role:
Role
, index:
int
= 0) -> *
Node
The nth node with this role.
Parameters
ui
:
*
UI_State
the UI to search.
role
:
Role
the role to match.
index
:
int
which match to take, from 0.
Returns
*
Node
See also
find
find_label
click
click_at