Skip to content
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

[🐛 Bug]: Ruby example code is not working - Remote WebDriver - Downloads - undefined method downloadable_files #1751

Closed
limuyuan opened this issue Jun 4, 2024 · 3 comments
Labels
bug Something isn't working needs-triaging

Comments

@limuyuan
Copy link

limuyuan commented Jun 4, 2024

What happened?

I'm trying to use Ruby to connect to a remote WebDriver and have a zip file downloaded from a website.

Here's the official document:
https://www.selenium.dev/documentation/webdriver/drivers/remote_webdriver/
https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/ruby/spec/drivers/remote_webdriver_spec.rb

I'm using Rubymine, and I got the error when trying to run the following line:

files = driver.downloadable_files

The compiler is showing as the below:

Cannot find 'downloadable_files' for type '(Selenium::WebDriver::Remote::Driver | Selenium::WebDriver::Firefox::Driver | Selenium::WebDriver::Safari::Driver | Selenium::WebDriver::IE::Driver | Selenium::WebDriver::Chrome::Driver)' 

What browsers and operating systems are you seeing the problem on?

Windows 11, RubyMine 2024.1.2, selenium-webdriver v4.4.0

@limuyuan limuyuan added bug Something isn't working needs-triaging labels Jun 4, 2024
Copy link
Contributor

github-actions bot commented Jun 4, 2024

@limuyuan, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@limuyuan limuyuan changed the title [🐛 Bug]: Ruby example code is not working - Remote WebDriver - Downloads - undefined method `downloadable_files' [🐛 Bug]: Ruby example code is not working - Remote WebDriver - Downloads - undefined method downloadable_files Jun 4, 2024
@titusfortner
Copy link
Member

That feature doesn't exist in that version of Selenium. Update to Selenium 4.21 and it should work.

@titusfortner titusfortner closed this as not planned Won't fix, can't repro, duplicate, stale Jun 4, 2024
@limuyuan
Copy link
Author

limuyuan commented Jun 5, 2024

That feature doesn't exist in that version of Selenium. Update to Selenium 4.21 and it should work.

Thank you, Titus, it works with 4.21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triaging
Projects
None yet
Development

No branches or pull requests

2 participants