Skip to main content

untilTotalElementsLT

Variant of untilTotalElementsEQ that waits until total elements returned by the given selector are less than a maximum number of elements.

warning

Should only be used when you expect the given selector to always return at least 1 element. For instance, if maximumNumberOfElements is 3, don't expect the wait to complete if selector returns 0 element. The wait completes only when found elements are > 1 && < maximumNumberOfElements.

untilTotalElementsLT(maximumNumberOfElements, using, by)
# Or
untilTotalElementsLT(maximumNumberOfElements, elemId, using, by)