0

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

3 Answers 3

4

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).

Sign up to request clarification or add additional context in comments.

Comments

1

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.

Comments

0

Documentation:
https://github.com/cucumber/cucumber/wiki/Setting-up-Selenium

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.