Skip to content

Commit c354cd4

Browse files
kblokactions-user
andauthored
Split browser and browser context (#2572)
* Split browser and browser context * Docs changes * Move connection * Fix CDPSession * more fixes * some fixes --------- Co-authored-by: GitHub Action <[email protected]>
1 parent dd4e9b9 commit c354cd4

18 files changed

+570
-414
lines changed

lib/PuppeteerSharp.Tests/TargetManagerTests/TargetManagerTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Threading.Tasks;
55
using Microsoft.AspNetCore.Http;
66
using NUnit.Framework;
7+
using PuppeteerSharp.Cdp;
78
using PuppeteerSharp.Helpers;
89
using PuppeteerSharp.Nunit;
910

@@ -25,7 +26,7 @@ public TargetManagerTests() : base()
2526
[Test, Retry(2), PuppeteerTest("TargetManager.spec", "TargetManager", "should handle targets")]
2627
public async Task ShouldHandleTargets()
2728
{
28-
var targetManager = (Browser as Browser).TargetManager;
29+
var targetManager = (Browser as CdpBrowser)!.TargetManager;
2930
Assert.AreEqual(2, targetManager.GetAvailableTargets().Values.Count);
3031

3132
Assert.IsEmpty(await Context.PagesAsync());

0 commit comments

Comments
 (0)