我不知道如何在 capybara poltergeist 中单击链接 href,我的测试中有这样的示例代码
it "test", :driver => :poltergeist do
page.find("#link1").click
end
在我的 html 中,我有这样的示例
<table class="index">
<tbody>
<tr>
<td><a href="http://localhost:3000/users/3" id="link1">hey click me</a></td>
</tr>
</tbody>
</table>
如何单击水豚 poltergeist 中的链接?我已经尝试过“click_link”、“click_button”和其他任何方法,但仍然无法正常工作