robotframework / OldSeleniumLibrary

Deprecated Selenium library for Robot Framework
Apache License 2.0
13 stars 3 forks source link

Cannot automate security alert boxes in IE using Selenium keywords. #128

Closed spooning closed 9 years ago

spooning commented 9 years ago

Originally submitted to Google Code by ranadeep.dm on 8 Jul 2010

Selenium library is working fine.Too Good.But I have tried many keywords to automate the Security alerts given in IE (given just before the application tries to opens after giving the URL) but it is not working. We have to press the 'Yes' button manually and then only 'Maximize Browser window' keyword is working.

spooning commented 9 years ago

Originally submitted to Google Code by Andreas.EbbertKarroum on 12 Jul 2010

Hi,

I think the security windows are native, and I'd found it an interesting browser behaviour if they could be controled with JavaScript (which is what Selenium is doing). You should configure your IE profile in such a way, that it does not show security windows.

Andreas

spooning commented 9 years ago

Originally submitted to Google Code by @pekkaklarck on 12 Jul 2010

Although Selenium itself doesn't provide means to interact with the native dialogs, there are other tools that can be used instead. Including those tools with the SeleniumLibrary isn't probably a good idea because the tools would be platform dependent. We could perhaps document this stuff in the wiki, though.

spooning commented 9 years ago

Originally submitted to Google Code by Li.Willi... on 7 Apr 2011

Agree with the comment that Selenium should have include the solution. In the solution I posted in developer list a few days ago, the only required library is JNative.jar, which, ironically, is part of the Selenium library.

spooning commented 9 years ago

Originally submitted to Google Code by @pekkaklarck on 7 Apr 2011

I haven't seen this kind of a mail on any Robot Framework mailing list. If it's easy to add support for for security alerts nowadays this issue can be re-opened.

spooning commented 9 years ago

Originally submitted to Google Code by Li.Willi... on 8 Apr 2011

Not sure how to email you Pekka, but here is the message I added in the developer forum, with the detail java solution:

https://groups.google.com/group/selenium-developers/browse_thread/thread/497315ca61136a1f?hl=en