in reply to Can't call method "click" on an undefined value

Please suggest me where am i doing it wrong.

Upgrade WWW::Mechanize

  • Comment on Re: Can't call method "click" on an undefined value

Replies are listed 'Best First'.
Re^2: Can't call method "click" on an undefined value
by neoanantha (Initiate) on Jun 01, 2008 at 04:19 UTC
    upgraded to 1.34 still getting the same error:

    Can't call method "click" on an undefined value at c:/Perl/lib/WWW/Mechanize.pm line 1541.

    eventhough the click function exists in Mechanize.pm

    and changed...$mech->click($buttton) to $mech->click_button(value => $button) which resulted in the following error

    Can't call method "find_input" on an undefined value at c:/Perl/lib/WWW/Mechanize.pm line 1614.