> link(:text => "Flagstaff Nordic Center case study", :index => 2).click
> Unable to locate element, using {:index=>2, :text=>"Flagstaff Nordic
> Center case study"}
The test scripts looks fine to me. Can you post a fragment of HTML
source for those links.
Anyway, Here is test script demostrating clicking 2nd href links with
same text.
spec "General Demo" do
include RWebSpec::RSpecHelper
before(:all) do
open_browser("
http://itest2.com/demo")
end
before(:each) do
goto_page("/demo")
end
scenario "Page has links with same text" do
click_link("Customer Interview")
# there are 3 links with 'Show Answer', click second one
browser.link(:text => "Show Answer", :index => 2).click
assert_visible(:div, "answer2")
end
end