locator.click

View as Markdown

locator.click is a browser runtime capability in the locator namespace.

Availability

  • Runtime: browser
  • Kind: raw
  • Category: interaction
  • Supported drivers: Playwright, Puppeteer

SDK Surface

  • SDK path: runtime.page.locator(...).click
  • Async: Yes

HTTP Surface

  • Transport: workspace.execute(...)
  • Call: locator.click
  • Long-running: No

Reference Semantics

  • Requires refs: locator

Arguments

ArgumentTypeRequiredDescription
optionsobjectNoDriver click options.

Result

  • Type: void
  • Description: Resolves when the click completes.

SDK Example

1await runtime.page.locator('button[type=submit]').click();

HTTP Example

1{
2 "runtime": "crm",
3 "steps": [
4 {
5 "call": "locator.click"
6 }
7 ]
8}