[dotnet] [bidi] Add SetScrollbarTypeOverride command in Emulation module#17171
Conversation
Review Summary by QodoAdd SetScrollbarTypeOverride command to BiDi Emulation module
WalkthroughsDescription• Adds SetScrollbarTypeOverride command to BiDi Emulation module • Introduces ScrollbarType enum with Classic and Overlay options • Implements command, parameters, options, and result types • Adds comprehensive unit tests for the new functionality File Changes1. dotnet/src/webdriver/BiDi/Emulation/SetScrollbarTypeOverrideCommand.cs
|
Code Review by Qodo
1. New IEmulationModule method
|
There was a problem hiding this comment.
Pull request overview
This PR adds support for the emulation.setScrollbarTypeOverride WebDriver BiDi command, as defined in the W3C spec. It introduces new types and hooks them into the existing Emulation module infrastructure.
Changes:
- Introduces
ScrollbarTypeenum,SetScrollbarTypeOverrideCommand,SetScrollbarTypeOverrideParameters,SetScrollbarTypeOverrideOptions, andSetScrollbarTypeOverrideResulttypes - Wires up the new command in
EmulationModule(implementation) andIEmulationModule(interface), including[JsonSerializable]context registration - Adds two integration tests covering setting an explicit scrollbar type and resetting to default
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
SetScrollbarTypeOverrideCommand.cs |
New file defining command, parameters, options, result, and ScrollbarType enum |
EmulationModule.cs |
Adds SetScrollbarTypeOverrideAsync method and registers types in the JSON serializer context |
IEmulationModule.cs |
Adds SetScrollbarTypeOverrideAsync to the public interface |
EmulationTests.cs |
Adds CanSetScrollbarTypeOverride and CanSetScrollbarTypeOverrideToDefault integration tests |
Review Summary by QodoAdd SetScrollbarTypeOverride command to BiDi Emulation module
WalkthroughsDescription• Adds SetScrollbarTypeOverride command to BiDi Emulation module • Implements ScrollbarType enum with Classic and Overlay options • Adds comprehensive test coverage for scrollbar override functionality • Includes command, parameters, options, and result types File Changes1. dotnet/src/webdriver/BiDi/Emulation/SetScrollbarTypeOverrideCommand.cs
|
Code Review by Qodo
1. New IEmulationModule method
|
https://w3c.github.io/webdriver-bidi/#command-emulation-setScrollbarTypeOverride
💥 What does this PR do?
Adds support for overriding the scrollbar type in the BiDi Emulation module. The main changes include the introduction of new command and result types, updates to the emulation interface and implementation, and new tests to verify the functionality.
🔄 Types of changes