In Mechanize on Ruby, I have to assign a new variable for every new page that I come to. For instance:
page2 = page1.link_with(:text => "Continue").click
page3 = page2.link_with(:text => "About").click
...etc
Is there a way to start the Mechanism without a variable holding each state of the page? as
my_only_page.link_with(:text => "Continue").click!
my_only_page.link_with(:text => "About").click!
source
share