in reply to Catching windows dialog events Win32::OLE?

Is there a reason you are not using something like Win32::IE::Mechanize (note Form Methods) to drive IE, populate and submit forms?

Hope this helps

Martin

  • Comment on Re: Catching windows dialog events Win32::OLE?

Replies are listed 'Best First'.
Re^2: Catching windows dialog events Win32::OLE?
by vectorscope (Initiate) on Feb 13, 2009 at 02:03 UTC
    Yes Mechanize does work wonderfully for forms...it even lets you set <input type='file'> properties... BUT

    Sadly the site I am trying to do this on uses javascript which Mechanize does not support :(

      Sadly the site I am trying to do this on uses javascript which Mechanize does not support :(

      You're thinking about WWW::Mechanize. Win32::IE::Mechanize is a Win32::OLE wrapper just like the code you are trying to write.

      Another more efficient approach than the one you are taking is to use HTTP::Recorder or similar utility and bypass the browser completely.

      Yet another method that is going to be more efficient than using the raw Win32::OLE API is to use one of the many interfaces to a piece of software called Selenium

      Basically, you are reinventing a wheel that has already been reinvented over and over and over (which of course is okay if... its okay with you).

      regards,