I'm using Capybara 2.1.0 and Selenium-Webkit 2.38.0 gems to test a Rails 3.2.13 app.

I have the following test:

```
visit my_favorite_path
click_link_or_button 'Share'
page.should have_link 'Send Email'
click_link_or_button 'Send Email'
last_email.should be_present

```

Which is failing on the second "click\_link\_or\_button" with the following (very opaque) error:

```
Failure/Error: click_link_or_button 'Send Email'
NoMethodError:
   undefined method `start_with?' for nil:NilClass

```

I get the same error when I replace the offending line with `click_link 'Send Email'` or `first(:link, 'Send Email').click`.

What could be the problem here? The third line of the test passes, seemingly confirming that the link exists, but then trying to click the link fails with this very unhelpful error.