[v4]: more page route stubs for locator functions

Merged
SE
8mo ago
+1222-3

why

  • to add page routes for more of the locator functions

what changed

  • added the following route stubs:
    • /fill
    • /highlight
    • /selectOption
    • /setInputFiles
  • each of the above optionally returns a selector object if returnSelector: true
  • aligned existing /click, /hover, and /dragAndDrop routes to default returnSelector to false

screenshot:

Screenshot 2026-03-24 at 1 25 11 PM

test plan


Summary by cubic

Adds v4 page route stubs for locator actions: /v4/page/fill, /v4/page/highlight, /v4/page/selectOption, and /v4/page/setInputFiles. Addresses STG-1646 with OpenAPI and schema updates; routes return placeholder results with optional selector output.

  • New Features

    • Added POST endpoints: /v4/page/fill, /v4/page/highlight, /v4/page/selectOption, /v4/page/setInputFiles (wired into router and documented). Each supports returnSelector (default false) and returns placeholder results.
  • Refactors

    • Default returnSelector is now false for /click, /hover, and /dragAndDrop.
    • ResultSelector is now required in result schemas.