Wait for Selector
wait_for Function
The wait_for
function pauses the operation until a specific element, identified by a CSS selector, is present on the page. This ensures that the desired element is loaded before performing subsequent actions, which is crucial for interacting with dynamic content.
Parameter
Required
Description
selectors
Required when wait_for
is being used
String | Wait until the listed selector(s) have loaded.
timeout
Optional
Integer | Controls the time to allow until a selector is loaded in ms.
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