Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Win32::IE::Mechanize - Security Popups

by p6steve (Sexton)
on Apr 30, 2008 at 10:50 UTC ( #683663=perlquestion: print w/replies, xml ) Need Help??

p6steve has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks!

I am using the nice Win32::IE::Mechanize module to get some table extracts from https sites.

One of the caveats in Abe Timmermann's doc is:

The InternetExplorer automation object does not provide an interface to "popup windows" generated by security settings or JScript contained in the page.

DESPITE this, I would like to be able to click "Yes" when IE asks if I accept mixed secure / unsecure content (or just close the popup window.) Is there any trick to do this to avoid this annoying manual intervention?

~rheum

Replies are listed 'Best First'.
Re: Win32::IE::Mechanize - Security Popups
by stiller (Friar) on Apr 30, 2008 at 11:01 UTC
    If your script is going to blindly confirm that kind of warning, then maybe you could just change the settings in internet explorer before running the script?

    Otherwise, you might want to take a look at Alien::SeleniumRC - it's awesome.

    update: also, to go with that, WWW::Selenium and Test::WWW::Selenium

Re: Win32::IE::Mechanize - Security Popups
by marto (Cardinal) on Apr 30, 2008 at 11:54 UTC

      Yes I did supersearch - but not on Automate (as I am not using this module). Sorry!

      All the same, I like the idea to disable in IE (why didn't I think of this!) - however even at Low Security settings - the "...both secure and nonsecure..." popup appears to be unavoidable. (I also trawled through the Custom Level boxes). Ho hum - I just have to be manual slave to my perl script.

        Did you add the site in question as a 'trusted site'? Under 'Custom Level' the radio buttons with values at 'Prompt' should be descriptive enough for you to work out what you want to set to 'Disable'. It often helps to search based on the general problem you are having, especially since both modules deal with automating IE, and the problem in both questions was essentially the same.
        I just have to be manual slave to my perl script.

        I personally believe that "Human Aided Computing" will likely be both a funny and interesting concept. (I had to do some Human Aided Printing a few years ago, but that's got to do with hardware, a wholly different story...)

        --
        If you can't understand the incipit, then please check the IPB Campaign.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://683663]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2022-05-20 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (75 votes). Check out past polls.

    Notices?