I encountered an interesting issue with this couple of months ago.
Using mechanize you can select or click form dom elements, submit forms and automate
interaction with websites. But let’s say there’s a case when you select an element
In such cases, you can’t directly get the result by mechanizing the element. Rather
you could just follow two simple steps to get the result,
1 – View the page source or inspect the element using firebug.
Url then open that url in your Ruby script. Here, you can by pass the mechanizing step
and get the result directly!