Link Search Menu Expand Document

Web And Mobile Conditions

UntilElementCondition

The UntilElementCondition specifies the state an element can have. Right now 4 states are implemented:

  1. is visible
  2. is not visible
  3. is enabled
  4. is not enabled

Methods and Attributes

name parameter description
.is* - attribute to specify that the status is present
.isNot* - attribute to specify that the status is not present
.visible() - check for the visibility status
.enabled() - check for the enabled status

Example

john.attemptsTo(
    Wait.for(MYELEMENT)
        andCheck(UntilElement.is.visible)
)