in reply to Re: Win32::IE::Mechanize trouble
in thread Win32::IE::Mechanize trouble

How would I go about finding out if it's undefined?

It's a button

<span class="button"><a href="javascript:clickedButton('submitLogin'); +"> <img xmlns="http://www.w3.org/1999/xhtml" title="" src="en/images/lan +guage_sensitive_images/pagegraphics/buttons/image/go.gif" class="" al +t=""/> </a></span>

Replies are listed 'Best First'.
Re^3: Win32::IE::Mechanize trouble
by ikegami (Patriarch) on Jun 19, 2008 at 19:42 UTC
      So I added this line:

      print "works" if defined $ie->form_name( $formName );
      Since nothing gets printed, this means that my form isn't getting set correctly, right?
        Yes, according to the docs. What if you try enumerating the forms using $ie->forms? Do you see the one in which you are interested?
Re^3: Win32::IE::Mechanize trouble
by ikegami (Patriarch) on Jun 19, 2008 at 19:50 UTC
    No, it's an anchor that executes javascript. You need to follow the link.
Re^3: Win32::IE::Mechanize trouble
by pc88mxer (Vicar) on Jun 19, 2008 at 19:55 UTC
    The button is an anchor which calls the JS routine clickedButton(). You'll just have to look at the JS code to see what really is going on.