How to acknowledge Firefox 'Security Warning' -dialogue

605 views
Skip to first unread message

Jussi Mononen

unread,
May 18, 2011, 4:24:52 AM5/18/11
to robotframework-users
Hi,

I have a test case which prompts us with a Firefox Security warning
dialogue. How do I click the "Continue" button in it? I have tried
"Confirm Action" and selecting window, neither worked. Is there
something I am missing or am I using aforementioned keywords
incorrectly?

Br,

--
"Progress doesn't come from early risers — progress is made by lazy
men looking for easier ways to do things." - Robert. A. Heinlein
[ http://www.agilefinland.com - http://www.scan-agile.org ]
[ http://www.jussimononen.org - http://www.twitter.com/agilepoodle ]

Jussi Malinen

unread,
May 18, 2011, 5:51:49 AM5/18/11
to robotframework-users
Hi Jussi!

These keywords don't work with native dialogs, like the security
warnings. Selenium works by directing the browser with javascript and
some things (like bypassing security warnings) are not really stuff
that javascript is supposed to be able to do. You can google for more
information on selenium and security warnings.

One thing you could try, is creating a custom Firefox profile where
you disable the security warning in question. [1]

Another option (that works only in windows) is using the autoit
library for accessing the native elements. [2]

Regards,
Jussi

[1] http://code.google.com/p/robotframework-seleniumlibrary/wiki/CustomFirefoxProfile

[2] http://code.google.com/p/robotframework-autoitlibrary/

> --
> You received this message because you are subscribed to the Google Groups "robotframework-users" group.
> To post to this group, send email to robotframe...@googlegroups.com.
> To unsubscribe from this group, send email to robotframework-u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/robotframework-users?hl=en.
>
>

Andrew Kolesnik

unread,
Aug 20, 2011, 10:18:17 PM8/20/11
to robotframe...@googlegroups.com
you can also keyword Start Selenium Server with '-trustAllCertificates' option.
Reply all
Reply to author
Forward
0 new messages