State Selectors
Select elements by state: enabled, checked, focused, or selected properties.
Last updated
# Find the checkbox that is currently checked
- assertVisible:
id: "remember_me_checkbox"
checked: true
# Ensure a switch is turned off
- assertVisible:
id: notifications_switch
checked: false# Verify that the 'Search' input field has focus
- assertVisible:
id: search_input
focused: true# Find the 'Profile' tab only if it is the currently selected one
- tapOn:
text: Profile
selected: true