-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[dotnet] [bidi] Support SetClientWindowState in Browser module #15533
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
base: trunk
Are you sure you want to change the base?
[dotnet] [bidi] Support SetClientWindowState in Browser module #15533
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
@@ -90,6 +90,7 @@ namespace OpenQA.Selenium.BiDi.Communication.Json; | |||
[JsonSerializable(typeof(Modules.Browser.RemoveUserContextCommand))] | |||
[JsonSerializable(typeof(Modules.Browser.GetClientWindowsCommand))] | |||
[JsonSerializable(typeof(Modules.Browser.GetClientWindowsResult))] | |||
[JsonSerializable(typeof(Modules.Browser.SetClientWindowStateCommand))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure I have to add ClientWindowInfo
type explicitly here, since it is already added by the code 3 lines below. @RenderMichael do you know? I cannot verify, the tests are ignored.
We can leave this PR opened until we verify how it works with real browser. At this moment I verified serialization only.
In draft because of not supported by browsers yet. |
User description
https://w3c.github.io/webdriver-bidi/#command-browser-setClientWindowState
Motivation and Context
Improve bidi coverage.
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Added support for
SetClientWindowState
in the Browser module.Enhanced
ClientWindow
to include BiDi reference and state-setting methods.Updated JSON serialization to include
SetClientWindowStateCommand
.Added unit tests for
SetClientWindowState
functionality.Changes walkthrough 📝
6 files
Updated `BrowserClientWindowConverter` to include BiDi reference
Added JSON serialization for `SetClientWindowStateCommand`
Modified `BrowserClientWindowConverter` to use BiDi reference
Added methods for setting client window states
Enhanced `ClientWindow` with state-setting methods
Introduced `SetClientWindowStateCommand` and related classes
1 files
Added unit tests for `SetClientWindowState` functionality