-
-
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
[java] custom duration for Actions constructor #14085
[java] custom duration for Actions constructor #14085
Conversation
PR Review 🔍
|
PR Code Suggestions ✨
|
Oh, thanks for taking on this one! I'm glad someone is finally looking into it. Your code doesn't actually show |
Please add tests for the new constructor added. |
@pujagani I reused two existing tests for the scrollToElement and scrollByAmount methods with a custom Duration. Additionally, I wrote two tests to check the setting of the default Duration and the custom Duration. Will this be enough? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## trunk #14085 +/- ##
=======================================
Coverage 57.76% 57.76%
=======================================
Files 87 87
Lines 5413 5413
Branches 228 228
=======================================
Hits 3127 3127
Misses 2058 2058
Partials 228 228 ☔ View full report in Codecov by Sentry. |
Haven't looked at the failures, pushing this one back to the next release |
Co-authored-by: Titus Fortner <titusfortner@users.noreply.github.com> Co-authored-by: Puja Jagani <puja.jagani93@gmail.com>
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
according to #12118 feature request, I started to discover the best way to implement duration overriding
Motivation and Context
Types of changes
Checklist
PR Type
Enhancement
Description
Actions
class in Selenium that allows specifying a customDuration
for actions.actionDuration
to store the specified duration.Changes walkthrough 📝
Actions.java
Add constructor with custom duration to Actions class
java/src/org/openqa/selenium/interactions/Actions.java
Actions
class that accepts aDuration
parameter.
actionDuration
to store theduration.