views:

502

answers:

3

Hi,

what do you prefer for testing JavaScript apps using Cucumber?

I never did it before - I only used Webrat for testing plain html.

I have tried Selenium, but it frustrated me and I didn't find any good documentation about Cucumber in combination with Selenium.

Best regards

+1  A: 

Around here we let webrat drive selenium for most of the operations. But it's still very fresh technology so be prepared to dig around in the code and debugger a bit.

matschaffer
A: 

Documentation:
http://wiki.github.com/aslakhellesoy/cucumber/setting-up-selenium

There are also resources on that wiki for various flavors of Watir.

SFEley
+2  A: 

Check out Capybara. It's a drop-in replacement for Webrat, but it lets you drive Firefox via Selenium for testing Javascript code (e.g. AJAX calls).

Michael Melanson