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/)
常に nil を返します。ある種の別の方法はありstart_with?("Next")ますか?
start_with?("Next")