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.
#
ParameterselemId
: The target elementdesiredSelectionState
: Aboolean
indicating the desired selection state of the element..
#
Returns- The given element itself
#
Example# wait until a checkbox is uncheckeduntilSelectionIs(findElement('consent', by.testId), false)