In your Cucumber features you can't really click hidden elements when using Selenium (it does work for a plain...
One of the most common production errors are ActionController::MethodNotAllowed errors. They usually happen when someone reloads a form by...
When you use google analytics to track your visitors interactions, you should ensure that it runs on your production site...
When using state_machine you sometimes need to know whether an object may execute a certain transition. Let's take...
After starting the Rails server in a freshly generated Rails 3.1 project you could see an error message such as...
By default, Rails views escape HTML in any strings you insert. If you want to insert HTML verbatim, you need...
The most common use case for Ruby's #collect is to call a method on each list element and collect...
Single step and slow motion for Cucumber scenarios can come in handy, especially in @javascript scenarios. # features/support/examiners.rb AfterStep('@slow_motion...
When cucumber encounters a failing step in a @javascript feature, the selenium browser window instantly closes. Sometimes you do not...
whatsmydns.net is an online service that allows you to instantly perform a DNS lookup to check a hostnames current IP...
ExecJS lets you run JavaScript code from Ruby. It automatically picks the best runtime available to evaluate your JavaScript program...
These methods are available to you: page.driver.browser.switch_to.alert.accept page.driver.browser.switch_to.alert.dismiss page.driver.browser.switch_to.alert.text # the confirmation text Spreewald gives you steps like these:
jQuery as new default Javascript library, streaming response support, attr_accessible with roles, prepared statements, easier migrations.
I believe that when WEBrick has trouble bringing up your Rails application, the WEBrick component that is supposed to print...
Detecting if a Javascript is running under Selenium WebDriver is super-painful. It's much easier to detect the current...
Chosen is a JavaScript plugin that makes long, unwieldy select boxes much more user-friendly. It is currently available in...
When your Cucumber feature needs to browse the page HTML, and you are not sure how to express your query...
Under the same origin policy, a web page served from server1.example.com cannot normally connect to or communicate with a server...
Cross-Origin Resource Sharing (CORS) is a browser technology specification, which defines ways for a web service to provide interfaces...
The Javascript code below is a rough equivalent to the simple_format helper that ships with Rails: function simpleFormat(str...
Note: While the solution in this card should still work, we prefer another solution now: Hide your Selenium browser window...
In Rails 2, you could use link_to_remote...
...:update => 'id' to automatically replace the content of $('#id').
Free Hoptoad/Airbrake alternative which can capture exceptions from any platform. It comes with a Rails notifier and a RESTful API...
Note: Consider using MATE instead of Gnome 3 on newer system Awesome is a very good tiling window manager that...