in reply to can't click a simple button

First things first. Make sure the button appears. Dump the page retrieved by $mech and verify it got the same page. Second, verify the item is found by Mechanize, such as with $mech->clickables() Once you know its there, you can concentrate on trying to click it. :)

Replies are listed 'Best First'.
Re^2: can't click a simple button
by backyardbill (Initiate) on Mar 18, 2015 at 23:09 UTC

    Eureka! While traversing the RE: threads on this (wonderful) site by the Monks, I found out how to derive the xpath using firebug. And bingo, it worked! Thanks for the help! Perl is fantastic. I'm programming again after 15 years layoff.

      Never mind. All previous login problems are solved. Just need to add some delay timers to get the code to work.