-
- Notifications
You must be signed in to change notification settings - Fork 8.6k
[java] Removing deprecated setScriptTimeout and pageLoadTimeout. #15764
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
Conversation
| Thank you, @diemol for this code suggestion. The support packages contain example code that many users find helpful, but they do not necessarily represent We actively encourage people to add the wrapper and helper code that makes sense for them to their own frameworks. |
PR Reviewer Guide 🔍(Review updated until commit 5778160)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 5778160
Previous suggestionsSuggestions up to commit 5778160
| |||||||||||||||||||||
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
User description
🔗 Related Issues
💥 What does this PR do?
This removes a couple of methods that have been deprecated for over 1 year.
🔧 Implementation Notes
💡 Additional Considerations
This will be mentioned in the release notes.
🔄 Types of changes
PR Type
Enhancement, Bug fix
Description
Remove deprecated
setScriptTimeoutandpageLoadTimeoutmethodsUpdate interfaces and implementations to use new timeout methods
Clean up related deprecated code and tests
Add new listener hooks for updated timeout methods
Changes walkthrough 📝
WebDriver.java
Remove deprecated timeout methods from WebDriver interfacejava/src/org/openqa/selenium/WebDriver.java
setScriptTimeoutandpageLoadTimeoutmethods fromTimeoutsscriptTimeout(Duration)andpageLoadTimeout(Duration)DriverCommand.java
Remove deprecated timeout payloads using TimeUnitjava/src/org/openqa/selenium/remote/DriverCommand.java
TimeUnitRemoteWebDriver.java
Remove deprecated timeout methods from RemoteWebDriverjava/src/org/openqa/selenium/remote/RemoteWebDriver.java
TimeoutsimplementationWebDriverListener.java
Add and document new script timeout listener hooksjava/src/org/openqa/selenium/support/events/WebDriverListener.java
beforeScriptTimeoutandafterScriptTimeouthooksbeforeSetScriptTimeoutandafterSetScriptTimeouthooksDecoratedTimeoutsTest.java
Update tests to remove deprecated timeout usagejava/test/org/openqa/selenium/support/decorators/DecoratedTimeoutsTest.java