Skip to main content

untilClicked

Waits until the given element is clicked. Once this function return, given element would've been clicked.

An element may not be clicked if it's hidden, of 0 height/width or is currently being obscured by another element (which means some other element is overlapping it in such a way that element's center point is not accessible by a mouse).

Use this function if you think the given element can't be immediately clicked and a wait is required for something to happen that makes it clickable.

A use case for this to wait for a button to be clicked that will appear after a delay such as opening up a dialog that loads some data before enabling it's 'Add data' button.

untilClicked(elemId)

Uses Element access timeout.

Parameters#

  • elemId: The target element

Returns#

  • boolean true if expectation fulfills`