CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Win32 Programming Help: Re: [jojo101] Problem with IEAutomation.pm: Edit Log



DieterDHoker
New User

Sep 13, 2008, 1:41 PM


Views: 7449
Re: [jojo101] Problem with IEAutomation.pm


In Reply To
my $popup = $ie->getPopupWindow("Request Acknowledged-Phaser 4510DT");
$popup->getTable('id:', "headingtext");
print $popup;
}
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:


Code
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...

regards,
Dieter D'Hoker


(This post was edited by DieterDHoker on Sep 13, 2008, 1:43 PM)


Edit Log:
Post edited by DieterDHoker (New User) on Sep 13, 2008, 1:43 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives