untilSelectionIs
Waits until the given element's selection state is equal to the desired state. Works for html elements that keep a selected state such as checkbox, radio.
untilSelectionIs(elemId, desiredSelectionState)Uses Element access timeout.
Parameters#
elemId: The target elementdesiredSelectionState: Abooleanindicating the desired selection state of the element..
Returns#
- The given element itself
Example#
# wait until a checkbox is uncheckeduntilSelectionIs(findElement('consent', by.testId), false)