我试图用“联系”来测试? 在我的试想中,我在此检验:
page.has_link?( next_page , {}).should == true
but, the test always fail, although the link with id next_page dose exist! the strange thing is that have_content always works fine, here is how I implement it:
page.should have_content("some text")
您能否帮助我? 我在这里失踪了吗?
http://www.ohchr.org。
页: 1
<a id="next_page" href="javascript: void(0)" onclick="javascript: void(0)" style="color: #888888">Next</a>