Skip to content

waygraph / visible

Function: visible() ​

visible(selector): Trait

Defined in: src/engine/trait/trait.ts:247

Passes once at least one element matching selector is visible on the page, waiting for it to appear. Uses .first() so list selectors (e.g. one row per message/document) don't trip Playwright strict mode - the check means "something matching is visible", not "the selector is unambiguous".

Parameters ​

selector ​

string

Returns ​

Trait

waygraph 0.18.3 (alpha) · Node 24+ · peer @playwright/test ^1.40.0 · syntax may change before 1.0: see what was removed