Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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
nvborisenko wants to merge 24 commits into SeleniumHQ:trunk
base: trunk
Choose a base branch
Loading
from nvborisenko:dotnet-bidi-browsingcontext
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7d92ca5
Some tests for browsing context
nvborisenko Sep 10, 2024
34a0c78
More examples
nvborisenko Sep 10, 2024
2b3816b
Update BrowsingContextTest.FragmentNavigatedEvent.cs
nvborisenko Sep 10, 2024
d23ff62
Task completion source for events
nvborisenko Sep 10, 2024
a6b1e44
Add more
nvborisenko Sep 12, 2024
2a8aa0b
Get tree
nvborisenko Sep 14, 2024
1ba4589
Group events
nvborisenko Sep 14, 2024
2e02cc2
Finish examples
nvborisenko Sep 14, 2024
cf93f36
Simplify browsing context
nvborisenko Sep 14, 2024
a108d99
Add example how to print 7.. pages
nvborisenko Sep 14, 2024
adda703
Simplify browsing context type
nvborisenko Sep 15, 2024
12f9167
BiDi is exposed from browsing context
nvborisenko Sep 15, 2024
0cd9dc3
Consistent AsBiDirectional naming
nvborisenko Sep 16, 2024
c3d85b9
Make it even shorter
nvborisenko Sep 16, 2024
0e4bd13
Use stable selenium
nvborisenko Sep 20, 2024
04704a1
Do no show that BiDi object is disposable
nvborisenko Sep 20, 2024
a5bf483
No sandbox to be able to print a page
nvborisenko Sep 20, 2024
90aa4c1
Upgrade
nvborisenko Oct 31, 2024
8e9763c
Merge remote-tracking branch 'upstream/trunk' into dotnet-bidi-browsi...
nvborisenko Dec 14, 2024
6ef220a
Simplify capture element screenshot
nvborisenko Dec 14, 2024
7b0b273
Merge remote-tracking branch 'upstream/trunk' into dotnet-bidi-browsi...
nvborisenko Mar 22, 2025
b93f3c2
Actualize to 4.30
nvborisenko Mar 22, 2025
9a9bbd7
Break some of them
nvborisenko Mar 22, 2025
f121c9e
Simplify
nvborisenko Mar 22, 2025
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
Simplify browsing context type
  • Loading branch information
nvborisenko committed Sep 15, 2024
commit adda703bcf42ab85e3906a19b11dd3d1f3a159ee
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public async Task Activate()
{
await using var bidi = await driver.AsBidirectionalAsync();

var tab = await bidi.CreateContextAsync(BrowsingContextType.Tab);
var tab = await bidi.CreateContextAsync(ContextType.Tab);

await tab.ActivateAsync();
}
Expand Down
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public async Task CloseTab()
{
await using var bidi = await driver.AsBidirectionalAsync();

var context = await bidi.CreateContextAsync(BrowsingContextType.Tab);
var context = await bidi.CreateContextAsync(ContextType.Tab);

await context.CloseAsync();
}
Expand All @@ -22,7 +22,7 @@ public async Task CloseWindow()
{
await using var bidi = await driver.AsBidirectionalAsync();

var context = await bidi.CreateContextAsync(BrowsingContextType.Window);
var context = await bidi.CreateContextAsync(ContextType.Window);

await context.CloseAsync();
}
Expand Down
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public async Task OpenNewTab()
{
await using var bidi = await driver.AsBidirectionalAsync();

var context = await bidi.CreateContextAsync(BrowsingContextType.Tab);
var context = await bidi.CreateContextAsync(ContextType.Tab);

Assert.IsNotNull(context);
}
Expand All @@ -22,7 +22,7 @@ public async Task OpenNewWindow()
{
await using var bidi = await driver.AsBidirectionalAsync();

var context = await bidi.CreateContextAsync(BrowsingContextType.Window);
var context = await bidi.CreateContextAsync(ContextType.Window);

Assert.IsNotNull(context);
}
Expand All @@ -34,7 +34,7 @@ public async Task OpenTabWithReferenceBrowsingContext()

var context1 = await driver.AsBidirectionalContextAsync();

var context2 = await bidi.CreateContextAsync(BrowsingContextType.Tab, new() { ReferenceContext = context1 });
var context2 = await bidi.CreateContextAsync(ContextType.Tab, new() { ReferenceContext = context1 });

Assert.IsNotNull(context2);
}
Expand All @@ -46,7 +46,7 @@ public async Task OpenWindowWithReferenceBrowsingContext()

var context1 = await driver.AsBidirectionalContextAsync();

var context2 = await bidi.CreateContextAsync(BrowsingContextType.Window, new() { ReferenceContext = context1 });
var context2 = await bidi.CreateContextAsync(ContextType.Window, new() { ReferenceContext = context1 });

Assert.IsNotNull(context2);
}
Expand Down
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public async Task GetAllTopLevelBrowingContexts()
{
await using var bidi = await driver.AsBidirectionalAsync();

var window2 = await bidi.CreateContextAsync(BrowsingContextType.Window);
var window2 = await bidi.CreateContextAsync(ContextType.Window);

var contexts = await bidi.GetTreeAsync();

Expand Down
4 changes: 2 additions & 2 deletions examples/dotnet/SeleniumDocs/SeleniumDocs.csproj
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.7.1" />
<PackageReference Include="MSTest.TestAdapter" Version="3.5.2" />
<PackageReference Include="MSTest.TestFramework" Version="3.5.2" />
<PackageReference Include="Selenium.Support" Version="4.25.0-nightly202409141916" />
<PackageReference Include="Selenium.WebDriver" Version="4.25.0-nightly202409141916" />
<PackageReference Include="Selenium.Support" Version="4.25.0-nightly202409150847" />
<PackageReference Include="Selenium.WebDriver" Version="4.25.0-nightly202409150847" />
</ItemGroup>

<ItemGroup>
Expand Down

AltStyle によって変換されたページ (->オリジナル) /