User description
Examples for https://www.selenium.dev/documentation/webdriver/bidi/w3c/browsing_context/
TODO:
Types of changes
Checklist
PR Type
Tests, Enhancement
Description
- Added multiple tests for various browsing context events and operations, including creation, destruction, navigation, and user prompts.
- Enhanced the
BaseTest class to include WebSocket URL option in ChromeOptions.
- Updated NuGet configuration to include GitHub Packages as a source.
- Upgraded Selenium.WebDriver package to a nightly version for testing.
Changes walkthrough 📝
| Relevant files |
|---|
| Enhancement | 1 files
BaseTest.csAdd WebSocket URL option to ChromeOptions
examples/dotnet/SeleniumDocs/BaseTest.cs
- Added
UseWebSocketUrl option to ChromeOptions.
+2/-1
|
| Tests | 11 files
BrowsingContextTest.BrowsingContextCreatedEvent.csAdd test for BrowsingContextCreatedEvent
examples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.BrowsingContextCreatedEvent.cs
Added test for BrowsingContextCreatedEvent. Utilized TaskCompletionSource for event handling.
+27/-0
BrowsingContextTest.BrowsingContextDestroyedEvent.csAdd test for BrowsingContextDestroyedEvent
examples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.BrowsingContextDestroyedEvent.cs
Added test for BrowsingContextDestroyedEvent. Verified context destruction.
+30/-0
BrowsingContextTest.BrowsingContextLoadedEvent.csAdd test for BrowsingContextLoadedEvent
examples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.BrowsingContextLoadedEvent.cs
Added test for BrowsingContextLoadedEvent. Used TaskCompletionSource for event handling.
+27/-0
BrowsingContextTest.CreateBrowsingContext.csAdd tests for creating browsing contexts
examples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.CreateBrowsingContext.cs
Added multiple tests for creating browsing contexts. Included tests for tabs and windows with reference contexts.
+61/-0
BrowsingContextTest.DomContentLoadedEvent.csAdd test for DomContentLoadedEvent
examples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.DomContentLoadedEvent.cs
Added test for DomContentLoadedEvent. Used TaskCompletionSource for event handling.
+27/-0
BrowsingContextTest.FragmentNavigatedEvent.csAdd test for FragmentNavigatedEvent
examples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.FragmentNavigatedEvent.cs
Added test for FragmentNavigatedEvent. Verified navigation to fragment.
+29/-0
BrowsingContextTest.GetBrowsingContextTree.csAdd test for retrieving browsing context tree
examples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.GetBrowsingContextTree.cs
Added test for retrieving browsing context tree. Verified tree structure and context relationships.
+28/-0
BrowsingContextTest.NavigateToUrl.csAdd tests for URL navigation
examples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.NavigateToUrl.cs
Added tests for navigating to URLs. Verified navigation information and readiness state.
+33/-0
BrowsingContextTest.NavigationStartedEvent.csAdd test for NavigationStartedEvent
examples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.NavigationStartedEvent.cs
Added test for NavigationStartedEvent. Used TaskCompletionSource for event handling.
+26/-0
BrowsingContextTest.UserPromptEvent.csAdd tests for user prompt events
examples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.UserPromptEvent.cs
Added tests for UserPromptOpened and UserPromptClosed events. Verified prompt handling.
+55/-0
BrowsingContextTest.csCreate BrowsingContextTest partial class
examples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.cs
- Created partial class for BrowsingContextTest.
+8/-0
|
| Configuration changes | 1 files
NuGet.configAdd GitHub Packages to NuGet sources
examples/dotnet/SeleniumDocs/NuGet.config
- Added GitHub Packages as a package source.
+1/-0
|
| Dependencies | 1 files
SeleniumDocs.csprojUpdate Selenium.WebDriver package version
examples/dotnet/SeleniumDocs/SeleniumDocs.csproj
- Updated Selenium.WebDriver package to a nightly version.
+1/-1
|
💡 PR-Agent usage:
Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions
Uh oh!
There was an error while loading. Please reload this page.
User description
Examples for https://www.selenium.dev/documentation/webdriver/bidi/w3c/browsing_context/
TODO:
Types of changes
Checklist
PR Type
Tests, Enhancement
Description
BaseTestclass to include WebSocket URL option in ChromeOptions.Changes walkthrough 📝
1 files
BaseTest.cs
Add WebSocket URL option to ChromeOptionsexamples/dotnet/SeleniumDocs/BaseTest.cs
UseWebSocketUrloption to ChromeOptions.11 files
BrowsingContextTest.BrowsingContextCreatedEvent.cs
Add test for BrowsingContextCreatedEventexamples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.BrowsingContextCreatedEvent.cs
BrowsingContextTest.BrowsingContextDestroyedEvent.cs
Add test for BrowsingContextDestroyedEventexamples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.BrowsingContextDestroyedEvent.cs
BrowsingContextTest.BrowsingContextLoadedEvent.cs
Add test for BrowsingContextLoadedEventexamples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.BrowsingContextLoadedEvent.cs
BrowsingContextTest.CreateBrowsingContext.cs
Add tests for creating browsing contextsexamples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.CreateBrowsingContext.cs
BrowsingContextTest.DomContentLoadedEvent.cs
Add test for DomContentLoadedEventexamples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.DomContentLoadedEvent.cs
BrowsingContextTest.FragmentNavigatedEvent.cs
Add test for FragmentNavigatedEventexamples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.FragmentNavigatedEvent.cs
BrowsingContextTest.GetBrowsingContextTree.cs
Add test for retrieving browsing context treeexamples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.GetBrowsingContextTree.cs
BrowsingContextTest.NavigateToUrl.cs
Add tests for URL navigationexamples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.NavigateToUrl.cs
BrowsingContextTest.NavigationStartedEvent.cs
Add test for NavigationStartedEventexamples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.NavigationStartedEvent.cs
BrowsingContextTest.UserPromptEvent.cs
Add tests for user prompt eventsexamples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.UserPromptEvent.cs
BrowsingContextTest.cs
Create BrowsingContextTest partial classexamples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.cs
1 files
NuGet.config
Add GitHub Packages to NuGet sourcesexamples/dotnet/SeleniumDocs/NuGet.config
1 files
SeleniumDocs.csproj
Update Selenium.WebDriver package versionexamples/dotnet/SeleniumDocs/SeleniumDocs.csproj