Take the 2-minute tour ×

I have a link on my page that will take you to 2 different places if its the first time that you press that link it will take you to the new action all other times will take to the update but the both links have the same text.

When /^I follow "(.*?)"$/ do |arg1|
share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

o.k same text for the link:

      click_link "Follow"

Then /^he should see hello message$/ do
  page.should have_selector('div.hello')
share|improve this answer
Isn't it click_link? –  Justin D. Jun 17 '12 at 15:57
in his case it is a link! Thx for your help. –  daniel glenn Jun 20 '12 at 3:05
add comment

Your Answer


