This is more or less the perfect setup for me, and it lets us run our tests against our PHP web application using the very fast mechanize driver where possible, and for tests that require javascript we can use either the “normal” selenium driver in capybara, or send the tests off to your local grid,… Read more »
Posts Tagged: testing
Custom User Agent with Cucumber Tests and Webrat in Mechanize Mode
It’s pretty straightforward to set a custom user agent with mechanize if you’re using it directly, KickAssLabs has a good example. If you’re using Mechanize through Webrat though, things are a little different. The nice thing though, is that you can do this in a step definition – allowing features to be based on different… Read more »