Wait and Click
wait_and_click Function
The wait and_click
function waits for a specific element, identified by a selector, to appear on the page and then automatically clicks on it. This is particularly useful for interacting with buttons, links, or other interactive elements on the page.
selector
Required when wait_and_click
is being used
String | The selector for the desired element to be clicked on
timeout
Optional
Integer | Controls the time to allow the click action run in ms
delay
Optional
Integer | The required delay to be added in ms
scroll
Optional
Bool | When true
, scroll the selected element into the visible area if it is not already visible.
visible
Optional
Bool | when true, the request will wait for the element to be present in the DOM and to be visible, i.e. to not have display: none or visibility: hidden CSS properties.
Example Request
Like all Page Interactions, infinite scrolling is capped by the global 120-second session timeout, and will be terminated if this limit is reached.
Last updated