Skip to content

Commit 0b117de

Browse files
committed
implement Frames prop
1 parent 0f1d4a4 commit 0b117de

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

lib/PuppeteerSharp/Bidi/BidiPage.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,19 @@ internal BidiPage(BidiBrowserContext browserContext, BrowsingContext browsingCon
5757
public override Target Target { get; }
5858

5959
/// <inheritdoc />
60-
public override IFrame[] Frames { get; }
60+
public override IFrame[] Frames
61+
{
62+
get
63+
{
64+
var frames = new List<IFrame> { BidiMainFrame };
65+
for (var i = 0; i < frames.Count; i++)
66+
{
67+
frames.AddRange(frames[i].ChildFrames);
68+
}
69+
70+
return [.. frames];
71+
}
72+
}
6173

6274
/// <inheritdoc />
6375
public override WebWorker[] Workers { get; }

0 commit comments

Comments
 (0)