-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[bidi][java][js] Add setFiles command of the Input Module #13711
Conversation
PR Description updated to latest commit (8588306)
|
PR Review(Review updated until commit 10b4dbb)
Code feedback:
✨ Review tool usage guide:Overview:
With a configuration file, use the following template:
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
With a configuration file, use the following template:
See the improve usage page for a more comprehensive guide on using this tool. |
/review |
Persistent review updated to latest commit 10b4dbb |
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Add setFiles command of the Input Module as described in the BiDi spec https://w3c.github.io/webdriver-bidi/#command-input-setFiles
Motivation and Context
Types of changes
Checklist
Type
enhancement
Description
setFiles
method overloads to theInput
class in Java for setting files on input elements, along with tests.setFiles
method in the JavaScript BiDi protocol implementation.ReferenceValue
class in JavaScript to use private fields, enhancing encapsulation.Changes walkthrough
Input.java
Add setFiles Method Overloads to Input Module
java/src/org/openqa/selenium/bidi/module/Input.java
setFiles
method overloads to theInput
class for setting fileson input elements.
RemoteReference
and a list of file paths, andthe other accepts an element ID and a list of file paths.
input.js
Implement setFiles Method in Input Class for BiDi Protocol
javascript/node/selenium-webdriver/bidi/input.js
setFiles
method in theInput
class for setting files oninput elements.
BiDi protocol.
protocolValue.js
Refactor ReferenceValue Class in BiDi Protocol Implementation
javascript/node/selenium-webdriver/bidi/protocolValue.js
ReferenceValue
class to use private fields for handle andsharedId.
asMap
method to work with the new private field structure.SetFilesCommandTest.java
Test Coverage for setFiles Method in Input Module
java/test/org/openqa/selenium/bidi/input/SetFilesCommandTest.java
setFiles
method in theInput
module.
RemoteReference
and element ID.setFiles_command_test.js
Test Coverage for setFiles Method in BiDi Protocol
javascript/node/selenium-webdriver/test/bidi/setFiles_command_test.js
setFiles
method in the BiDi protocolimplementation.
ReferenceValue
and an element ID.