fix(frames): treat elements inside hidden iframes as hidden - #42884
Conversation
Frame visibility is determined during selector resolution and passed to the injected script, so that elements inside a hidden frame element are never considered visible, including cross-origin frames. Fixes microsoft#42719
Make frameVisible a required argument of elementState() for 'visible' and 'hidden' states, and plumb it explicitly from locator resolution and ElementHandle api methods.
Test results for "tests 1"6 flaky52122 passed, 1241 skipped Merge workflow run. |
Test results for "MCP"1 failed 8704 passed, 1474 skipped Merge workflow run. |
🟢 CI is clear — the one failure is a known flakeHi, I'm the Playwright bot and I triaged the failing CI run. The only real failure is DetailsThis PR touches iframe visibility resolution ( Pre-existing flake / infra
The six flaky entries in the "tests 1" report (installation CLI, I'd just re-run the MCP job. Triaged by the Playwright bot - agent run |
b7957c5
into
microsoft:main
Summary
visibility: hiddeniframe are considered hidden, including cross-origin frames.frameVisibleis a required argument forelementState()visibility checks.Fixes #42719