test: fix frameset clicks in WebDriver BiDi (#11952)

This commit is contained in:
Alex Rudenko 2024-02-19 15:30:21 +01:00 committed by GitHub
parent 3ae01c2534
commit 76143f328f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 8 deletions

View File

@ -68,7 +68,10 @@ export class BidiElementHandle<
@ElementHandle.bindIsolatedHandle
override async contentFrame(): Promise<BidiFrame | null> {
using handle = (await this.evaluateHandle(element => {
if (element instanceof HTMLIFrameElement) {
if (
element instanceof HTMLIFrameElement ||
element instanceof HTMLFrameElement
) {
return element.contentWindow;
}
return;

View File

@ -401,13 +401,6 @@
"parameters": ["firefox"],
"expectations": ["SKIP"]
},
{
"testIdPattern": "[frame.spec] Frame specs Frame Management should click elements in a frameset",
"platforms": ["darwin", "linux", "win32"],
"parameters": ["webDriverBiDi"],
"expectations": ["FAIL"],
"comment": "New test for framesets. We probably do not want to support framesets in WebDriver BiDi in the long term."
},
{
"testIdPattern": "[frame.spec] Frame specs Frame Management should handle nested frames",
"platforms": ["darwin", "linux", "win32"],