browser_click_locator
Click web elements using Playwright locators: role+name, text, or CSS; support iframes via frameSelector; refine with nth, enabledOnly, scopeCss.
Instructions
Click by Playwright locator. Use frameSelector for iframes; omit for main page. Provide one of: role+name, text, or css. Optional: nth (0-based index), enabledOnly (click first enabled match), scopeCss (resolve within container).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | CSS selector (e.g. input[type=email], button) | |
| nth | No | Optional. 0-based index of match (e.g. 3 = 4th match). Use when multiple elements match. | |
| name | No | Accessible name (regex or string); use with role | |
| role | No | ARIA role, e.g. button, link | |
| text | No | Visible text to match (alternative to role+name) | |
| force | No | Skip actionability checks | |
| scopeCss | No | Optional. Resolve the locator only within this container (e.g. .quiz-card to avoid matching sidebar). | |
| timeoutMs | No | Timeout in ms | |
| enabledOnly | No | Optional. If true, click the first matching element that is not disabled (e.g. first enabled SUBMIT among several). | |
| frameSelector | No | Optional. Chained iframe selector; omit to target main page |