-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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]: allow setting custom timeout for DevTools #14931
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would an end user set the timeout locally or in the Grid?
@diemol I am not much clear about it. Initially, I thought the user can create a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking more about this... The DevTools code will go away when we move to BiDi completely.
So, adding a whole new interface seems a bit to much in this case. Maybe we can just increase the timeout to 20 or 30 seconds and call it a day.
I don't think we should invest in this complexity considering this will go away.
What do you think?
@diemol I will ask the issue creator for their approx timeout value and we can update it here if its upto 30 seconds, or else if it is 30+, we can update to 30 and tell them to wait for BiDi. |
Sounds good. |
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
Fixes #14912
Types of changes
Checklist
PR Type
Enhancement, Bug fix
Description
Added an overloaded constructor to set custom timeouts in
DevTools
.Introduced a
setTimeout
method to validate and update timeout duration.Ensured default timeout remains at 10 seconds for backward compatibility.
Improved error handling for invalid timeout values.
Changes walkthrough 📝
DevTools.java
Support custom timeout and validation in `DevTools`
java/src/org/openqa/selenium/devtools/DevTools.java
setTimeout
method for timeout validation and assignment.