A WebDriver route. schema takes Zod schemas (v3 or v4); the body and query types the handler receives are inferred from them.
schema
Optional
Returns a Response, or data sent as JSON. A method, so routes with different body types still fit in one RouteOptions[].
RouteOptions[]
A WebDriver route.
schematakes Zod schemas (v3 or v4); the body and query types the handler receives are inferred from them.