Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Mechanize 中跟踪一个内部有通用图像的链接。HTML 代码如下所示:
<a href="something">Next<img src="genericImage"/></a>
我想通过文本找到链接,并尝试这样做:
agent.page.link_with(:text => /Next/)
它总是返回零。还有另一种方法可以做某种事情start_with?("Next")吗?
start_with?("Next")