[dotnet] [bidi] FileDialogOpened event in Input module#16934
[dotnet] [bidi] FileDialogOpened event in Input module#16934nvborisenko merged 4 commits intoSeleniumHQ:trunkfrom
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
User description
https://w3c.github.io/webdriver-bidi/#event-input-fileDialogOpened
💥 What does this PR do?
Implements new
FileDialogOpenedevent.🔄 Types of changes
PR Type
Enhancement
Description
Implements
FileDialogOpenedevent in Input module per W3C WebDriver BiDi specAdds context-aware event subscription with async and sync handler support
Creates
FileDialogInforecord to represent file dialog event dataAdds concrete
SharedReferenceimplementation for shared object referencesIncludes comprehensive test coverage for file dialog event listening
Diagram Walkthrough
File Walkthrough
FileDialogInfo.cs
Create FileDialogInfo event data recorddotnet/src/webdriver/BiDi/Input/FileDialogInfo.cs
reference
InputModule.cs
Add file dialog event subscription methodsdotnet/src/webdriver/BiDi/Input/InputModule.cs
OnFileDialogOpenedAsyncfor async and synchandlers
FileDialogInfoin JSON serializer contextBrowsingContextInputModule.cs
Add context-aware file dialog event handlersdotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextInputModule.cs
OnFileDialogOpenedAsyncIRemoteReference.cs
Implement SharedReference concrete classdotnet/src/webdriver/BiDi/Script/IRemoteReference.cs
SharedReferencerecord classISharedReferenceinterfaceInputEventsTest.cs
Add FileDialogOpened event test coveragedotnet/test/common/BiDi/Input/InputEventsTest.cs
FileDialogOpenedevent subscription and event data