-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[feature] add method RemoteWebDriver.isDownloadsEnabled() #15868
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
[feature] add method RemoteWebDriver.isDownloadsEnabled() #15868
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
50ee651 to
26bf2d0
Compare
Thanks, fixed. |
|
That's something strange. Today |
I absolutely agree with you: in a typical "test automation" project, the initiator knows. I am implementing "file download" method. I receive the webdriver from end-user, and I need to check if the downloads are enabled. |
User description
💥 What does this PR do?
I want to add method
RemoteWebDriver.isDownloadsEnabled()which re🔧 Motivation
I need to check if current webdriver has capability
se:downloadsEnabled.My scenario looks like this:
🔄 Types of changes
HasDownloads, but don't extendRemoteWebDriver, will need to implement methodisDownloadsEnabled().PR Type
Enhancement
Description
Add
isDownloadsEnabled()method toRemoteWebDriverRequire
HasDownloadsimplementors to defineisDownloadsEnabled()Refactor download capability check in
HasDownloadsChanges walkthrough 📝
HasDownloads.java
Add and refactor downloads-enabled capability checks in HasDownloadsjava/src/org/openqa/selenium/HasDownloads.java
isDownloadsEnabled()method to interfacerequireDownloadsEnabledto use new methodRemoteWebDriver.java
Implement isDownloadsEnabled() in RemoteWebDriverjava/src/org/openqa/selenium/remote/RemoteWebDriver.java
isDownloadsEnabled()using HasDownloads utility