retry_click
Retries clicking an element when timing, overlays, or stale re-renders cause intermittent failures; waits for visibility and enabled state before each attempt.
Instructions
Click with retries, for clicks that fail intermittently: the element is covered by a loading overlay or animation, or re-rendered (stale) between being found and clicked. Each attempt waits for the element to be visible and enabled, then clicks; failed attempts pause delayMs before the next. Returns the attempt that succeeded, or every attempt's error. Try click first; use this when click failed because of timing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delayMs | No | Pause between failed attempts, in milliseconds (default 250). | |
| attempts | No | Maximum click attempts, 1-10 (default 3). | |
| selector | Yes | How to find the element, e.g. { by: 'css', value: '#login-button' } or { by: 'id', value: 'user-name' }. Prefer id, name, or a short CSS selector. | |
| timeoutMs | No | How long each attempt waits for the element to become visible and enabled, in milliseconds (default 10000). |