-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[bidi][java] Add methods to allow all parameters for script callFunction and evaluate method #13873
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] Add methods to allow all parameters for script callFunction and evaluate method #13873
Conversation
…ion and evaluate method
|
PR Description updated to latest commit (ef0551b)
|
PR Review
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## trunk #13873 +/- ##
=======================================
Coverage 58.72% 58.72%
=======================================
Files 86 86
Lines 5298 5298
Branches 226 226
=======================================
Hits 3111 3111
Misses 1961 1961
Partials 226 226 ☔ View full report in Codecov by Sentry. |
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
All a method to all parameters (mandatory and optional) for Script module commands to call a function and evaluation a script.
Motivation and Context
Keep up with the w3C BiDi spec
Types of changes
Checklist
Type
Enhancement, Tests
Description
Script.javafor enhanced script evaluation and function calls.CallFunctionParametersandEvaluateParametersclasses to encapsulate parameters for script functions and evaluations.ContextTarget,RealmTarget, andTargetclasses to represent different script targets.Changes walkthrough
Script.java
Add new methods for script evaluation and function calls in Scriptmodulejava/src/org/openqa/selenium/bidi/module/Script.java
callFunctionmethod to handle function calls withCallFunctionParameters.evaluateFunctionmethod to handle script evaluation withEvaluateParameters.CallFunctionParameters.java
Implement CallFunctionParameters class for script function parametersjava/src/org/openqa/selenium/bidi/script/CallFunctionParameters.java
CallFunctionParametersto encapsulate parametersfor the
callFunctionmethod.ownership, serialization options, etc.
ContextTarget.java
Add ContextTarget class for context-specific script targetsjava/src/org/openqa/selenium/bidi/script/ContextTarget.java
ContextTargetextendingTargetto representcontext-specific targets.
EvaluateParameters.java
Implement EvaluateParameters class for script evaluation parametersjava/src/org/openqa/selenium/bidi/script/EvaluateParameters.java
EvaluateParametersto encapsulate parameters forthe
evaluateFunctionmethod.serialization options, etc.
RealmTarget.java
Add RealmTarget class for realm-specific script targetsjava/src/org/openqa/selenium/bidi/script/RealmTarget.java
RealmTargetextendingTargetto representrealm-specific targets.
Target.java
Implement abstract Target class for script targetsjava/src/org/openqa/selenium/bidi/script/Target.java
Targetto serve as a base for specifictarget types like
ContextTargetandRealmTarget.CallFunctionParameterTest.java
Add tests for CallFunctionParameters in script modulejava/test/org/openqa/selenium/bidi/script/CallFunctionParameterTest.java
CallFunctionParametersclass, coveringvarious scenarios and parameter configurations.
EvaluateParametersTest.java
Add tests for EvaluateParameters in script modulejava/test/org/openqa/selenium/bidi/script/EvaluateParametersTest.java
EvaluateParametersclass, ensuring correcthandling of script evaluation parameters.