-
-
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] Add methods to allow all parameters for script callFunction and evaluate method #13873
[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.java
for enhanced script evaluation and function calls.CallFunctionParameters
andEvaluateParameters
classes to encapsulate parameters for script functions and evaluations.ContextTarget
,RealmTarget
, andTarget
classes to represent different script targets.Changes walkthrough
Script.java
Add new methods for script evaluation and function calls in Script
module
java/src/org/openqa/selenium/bidi/module/Script.java
callFunction
method to handle function calls withCallFunctionParameters
.evaluateFunction
method to handle script evaluation withEvaluateParameters
.CallFunctionParameters.java
Implement CallFunctionParameters class for script function parameters
java/src/org/openqa/selenium/bidi/script/CallFunctionParameters.java
CallFunctionParameters
to encapsulate parametersfor the
callFunction
method.ownership, serialization options, etc.
ContextTarget.java
Add ContextTarget class for context-specific script targets
java/src/org/openqa/selenium/bidi/script/ContextTarget.java
ContextTarget
extendingTarget
to representcontext-specific targets.
EvaluateParameters.java
Implement EvaluateParameters class for script evaluation parameters
java/src/org/openqa/selenium/bidi/script/EvaluateParameters.java
EvaluateParameters
to encapsulate parameters forthe
evaluateFunction
method.serialization options, etc.
RealmTarget.java
Add RealmTarget class for realm-specific script targets
java/src/org/openqa/selenium/bidi/script/RealmTarget.java
RealmTarget
extendingTarget
to representrealm-specific targets.
Target.java
Implement abstract Target class for script targets
java/src/org/openqa/selenium/bidi/script/Target.java
Target
to serve as a base for specifictarget types like
ContextTarget
andRealmTarget
.CallFunctionParameterTest.java
Add tests for CallFunctionParameters in script module
java/test/org/openqa/selenium/bidi/script/CallFunctionParameterTest.java
CallFunctionParameters
class, coveringvarious scenarios and parameter configurations.
EvaluateParametersTest.java
Add tests for EvaluateParameters in script module
java/test/org/openqa/selenium/bidi/script/EvaluateParametersTest.java
EvaluateParameters
class, ensuring correcthandling of script evaluation parameters.