Skip to content

Commit

Permalink
Update BrowsingContextTest.FragmentNavigatedEvent.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Sep 10, 2024
1 parent 34a0c78 commit 2b3816b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using OpenQA.Selenium.BiDi;
using OpenQA.Selenium.BiDi.Modules.BrowsingContext;
using System;
using System.Threading;
using System.Threading.Tasks;

namespace SeleniumDocs.BiDi.BrowsingContext;
Expand All @@ -14,6 +13,8 @@ public async Task FragmentNavigatedEvent()
{
var browsingContext = await driver.AsBidirectionalContextAsync();

await browsingContext.NavigateAsync("https://www.selenium.dev/selenium/web/linked_image.html", new() { Wait = ReadinessState.Complete });

TaskCompletionSource<NavigationInfo> tcs = new();

await browsingContext.OnFragmentNavigatedAsync(tcs.SetResult);
Expand Down

0 comments on commit 2b3816b

Please sign in to comment.