Sep 13, 2008, 1:41 PM
Re: [jojo101] Problem with IEAutomation.pm
my $popup = $ie->getPopupWindow("Request Acknowledged-Phaser 4510DT");
Above script will open the application and enters the values fetching from the file input.txt to the textbox and click on Button.After clicking a message box will pops up saying "Request Acknowledged - No Errors Reported".My requirement is to read the message in the popup window and to be printed on the console.
A message box? Looks like in stead of using the popup window method you need to use the dialog handling methods from this package:
my $clicker = Win32::IEAutomation::WinClicker->new();
There are methods for clicking on YES/NO/OK buttons etc. of dialogboxes but not one for reading what's in it. So you'll have to add a method to the pm file.
Probably at: C:\Perl\site\lib\Win32\IEAutomation\WinClicker.pm
It uses autoit internally ( http://www.autoitscript.com/autoit3/ ) for handling those dialogboxes so you'll have to find out how you can get text from a control using autoit first...
(This post was edited by DieterDHoker on Sep 13, 2008, 1:43 PM)