Skip to main content


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.


Uses Element access timeout.


  • elemId: The target element


  • boolean true if expectation fulfills`