capybara
Testing File Downloads with Capybara and ChromeDriver
At Collective Idea, we ♥ Cucumber, Capybara and ChromeDriver… and alliteration. But we recently encountered an issue with a very Ajaxy Rails app where we need to test a file download and assert its content.
Capybara, Cucumber and How the Cookie Crumbles
I use Capybara and Cucumber to test my Rails apps, but cookie management can often be difficult… until now.
Use Chrome with Cucumber & Capybara
Swapping out Firefox for Chrome is easier than you think!
Double Clicking in Capybara
Need to define a capybara step for double clicking an element? Here’s what we came up with.
Simultaneous Capybara Sessions in Cucumber
There’s something very satisfying about watching your Cucumber test suite run (and pass), especially when the tests are running in your browser. I can’t help but think, “Man, I’m glad I don’t have to do all of this myself.” That’s especially true when your testing requires multiple sessions. The old me would fire up a couple different browsers and get to work. But that was the old me.
Clicking any element with Cucumber and Capybara
We’ve been testing a lot of Javascript heavy apps these days with Cucumber and Capybara, and sometimes you just need to click on something that isn’t a button or a link.
