Wait and Click
Wait for elements to become available and clickable, then perform a click action.Basic Wait and Click
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Must be "wait_and_click" |
selector | string | Yes | CSS selector for the element to click |
timeout | integer | No | Max wait time in milliseconds (default: 10000) |
visible | boolean | No | Wait for element to be visible (default: true) |
enabled | boolean | No | Wait for element to be enabled (default: true) |
Use Cases
Load More Buttons
Click pagination or “Load More” buttons:Modal Dialogs
Handle popup dialogs and modals:Dynamic Content
Click elements that appear after page interactions:Advanced Options
Multiple Conditions
Wait for multiple conditions before clicking:Click Coordinates
Click at specific coordinates relative to element:Force Click
Force click even if element is not interactable:Error Handling
Element Not Found
Element Not Clickable
Timeout Exceeded
Best Practices
Selector Specificity
Use specific selectors to avoid clicking wrong elements:Appropriate Timeouts
Set reasonable timeouts based on expected load times:Chaining Actions
Combine with other actions for complex workflows:SDK Examples
Node.js
Python
Related Actions
- Wait for Selector - Wait without clicking
- Wait and Type - Wait and input text
- Click - Basic click action

