-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[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 🔍(Review updated until commit 0335935)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. |
PR Code Suggestions ✨No code suggestions found for the PR. |
User description
https://w3c.github.io/webdriver-bidi/#command-browser-setClientWindowState
Motivation and Context
Improve bidi coverage.
Types of changes
Checklist
PR Type
Enhancement
Description
• Add SetClientWindowState command support for BiDi Browser module
• Implement named state (fullscreen/maximized/minimized) and rect state options
• Add public API methods for setting client window states
• Include test coverage for new functionality
Changes walkthrough 📝
5 files
Add SetClientWindowState async methods
Add BiDi reference and SetState methods
Inherit from EmptyResult base class
Create new command with parameters and options
Accept BiDi parameter in constructor
1 files
Pass BiDi instance to converter
1 files
Register SetClientWindowStateCommand for serialization
1 files
Add tests for window state functionality