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
Attach file fails in Firefox and Windows 10 #2155
Comments
You need to translate / to \ in the filename string since you're on windows |
I am facing the same issue. And I am translating / to \ if "OS.windows?" as you can see below. It works in Chrome but not in Firefox 68.0 (64-bits). def attach_doc_file(id, file) |
@lflucasferreira What is the actual error you get? |
This is the actual error: File not found: C:/Project/cnb/features/support/public/doc/CEP_Upload.xml (Selenium::WebDriver::Error::InvalidArgumentError) |
@lflucasferreira Are you working with a remote driver by any chance? |
@lflucasferreira If you're not using a remote driver but you're using Capybara >= 3.24, could you please try 3.23 and see if the issue goes away. |
You are right. I downgraded the version to 3.23 and it worked. I was using 3.25. Do you know if this is gonna be fixed soon? Thank you! |
@lflucasferreira c059bfe is the change that broke this -- I'm make a quick fix that only expands if the path is relative but then I need to think about a better way to handle this. |
@lflucasferreira Please see #2228 and provide feedback |
Meta
Capybara Version: 3.13.2
Driver Information (and browser if relevant): Selenium Driver with Firefox 65 on Windows 10
Capybara.configure do |config|
config.default_driver = :selenium
end
Expected Behavior
Upload with success
Actual Behavior
Steps to reproduce
The text was updated successfully, but these errors were encountered: