Jquery click function working but syntax incorrect for capybara