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

print $ie->forms

returns nothing...

Replies are listed 'Best First'.
Re^7: Win32::IE::Mechanize trouble
by ikegami (Patriarch) on Jun 20, 2008 at 17:52 UTC
    That should have been a hint to check the page being parsed ($ie->content).
      So I'm back to trying to get this done after some other things. print $ie->content yields this:

      <HTML lang=en xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><HEAD +><BASE href=https://secure.somesite.com:443/ccp/> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> +<LINK href="https://secure.somesite.com/ccp/en/stylesheets/simple.css +" type =text/css rel=stylesheet><LINK media=screen href="https://secure.somes +ite.com/ccp/en/stylesheets/main.css" type=text/css rel=stylesheet><LI +NK med ia=screen href="https://secure.somesite.com/ccp/en/stylesheets/navigat +ion.css" type=text/css rel=stylesheet><LINK media=screen href="https: +//secu re.somesite.com/ccp/en/stylesheets/forms.css" type=text/css rel=styles +heet><LINK media=screen href="https://secure.somesite.com/ccp/en/styl +e sheets/tables.css" type=text/css rel=stylesheet><LINK media=print href +="https://secure.somesite.com/ccp/en/stylesheets/print.css" type=text +/css r el=stylesheet><LINK media=handheld href="https://secure.somesite.com/c +cp/en/stylesheets/handheld.css" type=text/css rel=stylesheet><LINK me +dia=sc reen href="https://secure.somesite.com/ccp/en/stylesheets/styles.css" +type=text/css rel=stylesheet><LINK media=screen href="https://secure. +somesitem obility.com/ccp/en/stylesheets/my.css" type=text/css rel=stylesheet><L +INK media=screen href="https://secure.somesite.com/ccp/en/stylesheets +/ccp.c ss" type=text/css rel=stylesheet> <SCRIPT language=JavaScript> var formChangedMessage='Do you wish to proceed without saving the chan +ges?'; </SCRIPT> <SCRIPT language=JavaScript src="/ccp/jscripts/actionUtil.js"></SCRIPT +> </HEAD></HTML>

      No mention of any forms...which is certainly a problem. There is tons of stuff between the last </SCRIPT> and </HEAD>...any idea why it's not showing up? It this a javascript issue?

      thanks

        Oops, content is not that useful with Win32::IE::Mechanize.

        Win32::IE::Mechanize should see whatever IE sees, and if forms are generated by JavaScript, that shouldn't be a problem if it works in your IE.