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 |
---|---|---|
| Required when | String | Wait until the listed selector(s) have loaded. |
| 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