fix(types): document inline options#41860
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 35f115a2-a27a-4abf-9568-d6fbd5fd46e7
Test results for "MCP"1 failed 7759 passed, 1249 skipped Merge workflow run. |
Test results for "tests 1"7 flaky49956 passed, 1186 skipped Merge workflow run. |
🟢 CI is clear — the one failure is a pre-existing flakeHi, I'm the Playwright bot and I took a look at the failing CI. The only failure is DetailsPre-existing flake / infra
Triaged by the Playwright bot - agent run |
| @@ -133,6 +133,11 @@ export interface Page { | |||
| * @param arg Optional argument to pass to | |||
| * [`pageFunction`](https://playwright.dev/docs/api/class-page#page-evaluate-option-expression). | |||
| * @param options | |||
| * @param options.exposeFunctions When set to `true`, functions passed inside | |||
There was a problem hiding this comment.
can we instead document individual fields inline (same as e.g. goto does) ?
| * without any content or with `display:none` has an empty bounding box and is not considered visible. | ||
| * - `'hidden'` - wait for element to be either detached from DOM, or have an empty bounding box or | ||
| * `visibility:hidden`. This is opposite to the `'visible'` option. | ||
| * @param options.strict When true, the call requires selector to resolve to a single element. If given selector resolves to more than one |
| @@ -969,6 +1119,12 @@ export interface Page { | |||
| * | |||
| * @param type | |||
| * @param options | |||
| * @param options.behavior Specifies whether to wait for already running listeners and what to do if they throw errors: | |||
There was a problem hiding this comment.
Same here - options.behavior is actually documented 10 lines below with the same comment.

Summary
@param options.<property>documentation from API docs