Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test File Download dialog box using cucumber/capybara

I searched around and couldn't find how to test a file download box using capybara/cucumber?

The following image asks the question much clearer.


How to test file download using capybara

like image 903
Autodidact Avatar asked Mar 17 '11 11:03

Autodidact


2 Answers

This was similar to another question I just answered, hope it helps Anybody have idea how to test file download using cucumber?

like image 86
ToreyHeinz Avatar answered Nov 15 '22 10:11

ToreyHeinz


@Millisami Capybara::NotSupportedByDriverError Fixed for me!

What i had to do is removing the @javascript tag from my cucumber test, which was included. I mean:

@search Scenario: Recieving a file ...

instead of

@search @javascript
Scenario: Recieving a file ...

Hope it helps :-)

like image 35
viktorvogh Avatar answered Nov 15 '22 10:11

viktorvogh