thoughtbot/capybara-webkit — Issue #258: Custom Click Handlers Failing in OS X
Author: billmag
Created: 2012-02-03 20:55:10+00:00
State: open

I've built a webapp that calls preventDefault on navigation anchor clicks and instead uses Crossroads to parse the requested href and reload content with an AJAX callback. Hitting these links works for me with Selenium, but with Capybara-Webkit the custom handler that I've attached with jQuery.click() doesn't execute in OSX with qt4-mac (built with 'sudo port install qt4-mac'). The exact same tests work for me in our ci environment, which is running Ubuntu (using apt-get's libqt4-dev libqtwebkit-dev packages).

A forgotten comment on this StackOverflow thread suggests that I'm not the only one with this problem, but I also imagine that I'm not the only person who is overriding click behavior:
http://stackoverflow.com/questions/7616095/testing-jquery-dialog-with-capybara-webkit