-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[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
setScriptTimeout
andpageLoadTimeout
methodsUpdate 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 interface
java/src/org/openqa/selenium/WebDriver.java
setScriptTimeout
andpageLoadTimeout
methods fromTimeouts
scriptTimeout(Duration)
andpageLoadTimeout(Duration)
DriverCommand.java
Remove deprecated timeout payloads using TimeUnit
java/src/org/openqa/selenium/remote/DriverCommand.java
TimeUnit
RemoteWebDriver.java
Remove deprecated timeout methods from RemoteWebDriver
java/src/org/openqa/selenium/remote/RemoteWebDriver.java
Timeouts
implementationWebDriverListener.java
Add and document new script timeout listener hooks
java/src/org/openqa/selenium/support/events/WebDriverListener.java
beforeScriptTimeout
andafterScriptTimeout
hooksbeforeSetScriptTimeout
andafterSetScriptTimeout
hooksDecoratedTimeoutsTest.java
Update tests to remove deprecated timeout usage
java/test/org/openqa/selenium/support/decorators/DecoratedTimeoutsTest.java