*** title: Playwright Locator description: Complete Locator method reference for the Playwright driver. ------------------------------------------------------------------------- All `Locator` methods available when using the **Playwright** driver. Access via `runtime.page.locator(...)` after launching a Playwright runtime. Every method below is a remote call. The SDK translates it into a structured step sent to a single endpoint: ``` POST /v1/workspaces/{workspaceId}/execute ``` ```json { "runtime": "my-browser", "steps": [ { "call": "locator.goto", "args": ["https://example.com"] } ] } ``` The `call` field maps directly to the method name. `args` is a JSON array of the method's arguments. You can batch multiple steps in one request. ## Actions ### click(options?) Clicks on the element. Waits for actionability checks, scrolls element into view, and uses Page.mouse to click in the center of the element. ```ts await locator.click(); ``` | Parameter | Type | Required | Description | | --------- | ------------------------ | -------- | ----------- | | `options` | `PlaywrightClickOptions` | No | — | [Upstream docs](https://playwright.dev/docs/api/class-locator#locator-click) *** ### dblclick(options?) Double-clicks on the element. Performs two clicks with a short delay, simulating a native double-click. Waits for actionability checks before performing the action. ```ts await runtime.page.locator(...).dblclick(); ``` | Parameter | Type | Required | Description | | --------- | --------------------------- | -------- | ----------- | | `options` | `PlaywrightDblclickOptions` | No | — | [Upstream docs](https://playwright.dev/docs/api/class-locator#locator-dblclick) *** ### fill(value, options?) Fills an input or textarea element with the specified value. This method waits for actionability checks, focuses the element, fills it, and triggers an input event. It clears the existing value before filling. Works with \, \