
KHALSA.GURU
KhalsaGuruThe Vast Universe of Programming. March 20, 2014. Trick to Navigating w/ Mechanize and Nokogiri. March 20, 2014. When navigating with Mechanize it's easy if links all have logical and plentiful classes, you can just use links with(:dom class = 'foo'). But that never seems to be the case for me and when classes aren't available on the links directly, to identify the link you want to target you will need to use Mechanize's Nokogiri parser:. Pageparser.css('.fooclass a'). Here's how you'd use it in a basic ...
http://www.khalsa.guru/