TheFlyingCorpse has asked for the wisdom of the Perl Monks concerning the following question:
What I am however unable todo, is catch/trap/hide the dialogue returned at the end of the JavaScript which is embedded in the webpage, it calls a function where it writes it to a msgBox. I am not able to hide this and I really want todo this. I've tried putting the IE::Mechanize agent in quiet mode, ignoring errors etc, but it always comes back to tell me using message boxes. Is it possible to trap these? (I am not bound to use Internet Explorer/Windows XP, but was the easiest to kick off this project with)use Win32::IE::Mechanize; my $mech = Win32::IE::Mechanize->new( visible => 0 ); $url = 'http://url/to/webpage'; $mech->get( $url ); $mech->success or die $mech->response->status_line; $mech->get('javascript:Install()'); #DO something to hide the resulting msgBox/javascript:alert
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: fetch HTML page, do javascript, read output from alert/msgbox
by Corion (Patriarch) on Nov 10, 2009 at 22:00 UTC | |
by TheFlyingCorpse (Novice) on Nov 11, 2009 at 07:26 UTC | |
by Corion (Patriarch) on Nov 11, 2009 at 08:17 UTC | |
by TheFlyingCorpse (Novice) on Nov 11, 2009 at 10:55 UTC | |
by Corion (Patriarch) on Nov 11, 2009 at 12:05 UTC | |
|