in reply to Re^4: Grab text from web page using Win32::OLE
in thread Grab text from web page using Win32::OLE

I don't have a clue... I guess your concern is that the browser itself wouldn't let me sneak on the input a user types and submits...?

If this is the case, is there a workaround?

The app I need to write should open a browser and navigate the user to a web page. There, the user must create an account by entering username and password. The web page itself will inform them of the success or failure of the account creation.

Then, I must ask the user to re-type the (approved) username and password in my perl-tk application window. What I try to do is avoid the case that the user enters the wrong credentials in my application. (this is why I want to have the ones from the browser so that I can cross-check and inform them in the case of an error)...
  • Comment on Re^5: Grab text from web page using Win32::OLE

Replies are listed 'Best First'.
Re^6: Grab text from web page using Win32::OLE
by ikegami (Patriarch) on Oct 13, 2008 at 14:48 UTC
    I think you have it backwards. Ask for the credendtials yourself then feed them to $mech, not the other way around.
      Yep, you are right, I was only trying to exploit the web page's java script messages for correct character length, valid characters etc... and not do them myself... But you are right, it doesn't seem to work the other way round.

      Thanks a lot for your help.
      Athanasia