You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[api review 1.65] Inert elements and content outside a modal <dialog> are hidden #43792
keep not inert actionability check, extend it to selectOption()
revert inert as aria-hidden
remove <dialog> handling
Docs: Actionability is covered. Missing: a note on the role locator and aria snapshot pages that inert and non-modal content is excluded, and a decision on whether the two PLAYWRIGHT_SKIP_* env vars are supported (then document them) or temporary. Needs a prominent release-notes entry; this will change existing toHaveCount, toMatchAriaSnapshot and click behavior in apps that use modal dialogs.
Hi, I'm the Playwright bot and I implemented the requested review changes.
Fix proposed. The explicit inert action check remains and now covers selectOption(). Inert elements and content outside modal dialogs are no longer filtered from role locators, accessible names or ARIA snapshots. The modal-dialog detection and both temporary skip environment variables are removed.
The changed checks failed on Linux at 1d5572d5ddfb7f3c8dfbbe19c8e97def0b2738db (1.65.0-next). With the fix, the seven affected and neighboring test files pass on Chromium, Firefox and WebKit: 848 passed, 7 skipped. Build and full lint checks also pass. Actionability docs and release notes for all four languages describe the final behavior.
Condensed behavior check
awaitpage.setContent('<div inert><select><option>one</option><option>two</option></select></div>');awaitexpect(page.getByRole('combobox')).toHaveCount(1);consterror=awaitpage.getByRole('combobox').selectOption('two',{timeout: 1000}).catch(e=>e);expect(error.message).toContain('element is inert');awaitexpect(page.locator('select')).toHaveValue('one');awaitpage.locator('div').evaluate(e=>e.removeAttribute('inert'));awaitpage.getByRole('combobox').selectOption('two');awaitexpect(page.locator('select')).toHaveValue('two');
Existing tests also check accessible names, shadow trees, multiple modal dialogs, ARIA snapshot assertions, AI snapshot references, click retries and fill retries. Removing only the new select-option check makes its regression test fail because selection completes while the element is inert.
Activity
github-actions commentedon Oct 30, 2026
github-actions commentedon Oct 30, 2026
Hi, I'm the Playwright bot and I implemented the requested review changes.
Fix proposed. The explicit
inertaction check remains and now coversselectOption(). Inert elements and content outside modal dialogs are no longer filtered from role locators, accessible names or ARIA snapshots. The modal-dialog detection and both temporary skip environment variables are removed.The changed checks failed on Linux at
1d5572d5ddfb7f3c8dfbbe19c8e97def0b2738db(1.65.0-next). With the fix, the seven affected and neighboring test files pass on Chromium, Firefox and WebKit: 848 passed, 7 skipped. Build and full lint checks also pass. Actionability docs and release notes for all four languages describe the final behavior.Condensed behavior check
Existing tests also check accessible names, shadow trees, multiple modal dialogs, ARIA snapshot assertions, AI snapshot references, click retries and fill retries. Removing only the new select-option check makes its regression test fail because selection completes while the element is inert.
Draft PR: #43804
Triaged on Linux by the Playwright bot - agent run
feat(actionability): wait for elements to be non-inert
chore: mark v0.0.85 (#1846)
chore: mark v0.1.24 (#529)
chore(deps): update dependency @playwright/mcp to v0.0.85 (#3253)
Update agent CLIs