Custom User Agent with Cucumber Tests and Webrat in Mechanize Mode

Posted by & filed under Professional.

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 »