-
-
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
[rb] implement remote downloads #12037
Conversation
I want to hold off on this until after we releases 4.10 to keep pace with other bindings. Wanted a proof of concept in Ruby to make it easier to do it in other languages (maybe) |
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.
Maybe I missed this because I am not very fluent in Ruby... But I think we should return an error when the capability se:downloadsEnabled
is not present.
Won't the node do this? We're not currently doing this elsewhere in ruby code, though I guess we could... |
I guess I was thinking of disabling the method in some way or throwing an error. People will try this with any Grid they have available because most users do not read the prerequisites. Also, it won't work with most cloud vendors for now, so trying to avoid throwing work to their customer support teams. |
Makes sense. We should do the same with bidi capability, then. Oddly, ruby used to do this with the javascript enabled capability and was the only one, and this is what prevented selenium 2 ruby tests from working with Selenium 3 grid. |
8b4b3cd
to
6756604
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## trunk #12037 +/- ##
=======================================
Coverage 56.49% 56.49%
=======================================
Files 86 86
Lines 5255 5255
Branches 187 187
=======================================
Hits 2969 2969
Misses 2099 2099
Partials 187 187 ☔ View full report in Codecov by Sentry. |
6756604
to
513367a
Compare
a8febe0
to
8e3db89
Compare
8e3db89
to
7753bbb
Compare
@titusfortner any insight on #13307? |
# Release Notes SeleniumHQ/selenium#12037 SeleniumHQ/selenium#13307 SeleniumHQ/docker-selenium#2052 This should be resolved as of: #3997
Status
Ruby delete fails because of #13025
I rebased this PR on that fix to make sure it passes
Description
HasFileDownloads
module with#downloadable_files
and#download_file
Options#enableDownloads
to allow downloadingRemoteWebDriver
includes this new moduleRemote::Bridge
, I createdRemote::Features
similar to how we've done the browser features files#command_list
created andRemote::Features#add_commands
forRemote::Driver
to usese:downloadsEnabled
Motivation and Context
This implements #11657