Skip to content

[dotnet] Add examples for BiDi W3C Browsing Context #1940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 24 commits into
base: trunk
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update BrowsingContextTest.FragmentNavigatedEvent.cs
  • Loading branch information
nvborisenko committed Sep 10, 2024
commit 2b3816b31458e263fd2dcbd7dffb5c10b1b2e436
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