[Wtr-general] How to handle the popup security alert
Jason He
Jason.He at resilience.com
Thu Feb 1 23:38:25 EST 2007
The following code shows a case using clearSecurityAlertBox().
-------------------------------------------------------------------
require 'watir' # the watir controller
include Watir
require 'watir/winClicker'
$ie = Watir::IE.new
$ie.goto('https://10.101.4.69:4443')
# create a new instance of WinClicker and use it
wc = WinClicker.new
wc.clearSecurityAlertBox()
# other scripts #
-------------------------------------------------------------------
The result is that, IE status bar shows “Opening page https://10.101.4.69:4443 <https://10.101.4.69:4443/> ”, and a “Security Alert” pops up.
However, it will stop at this point, and not go further.
Is there anything I missed?
Regards,
Jason
________________________________
From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Charley Baker
Sent: 2007年1月27日 1:52
To: wtr-general at rubyforge.org
Subject: Re: [Wtr-general] How to handle the popup security alert
What error are you seeing? I wasn't saying to use IE 7 to bypass the problem, just mentioning the differences. If you could post a snippet of code and the error you're getting, that would be helpful.
-Charley
On 1/25/07, Jason He <Jason.He at resilience.com> wrote:
I have tried several times and found that error returned when using clearSecurityAlertBox & push_security_alert_yes.
I searched the archived mailing list, not found an example showing how to make it happen. The Watir doesn't provider such examples too.
Yes, we can use IE 7 to bypass this problem, but how to solve it when use Windows 2000 to do the test? (As we known Windows 2000 doesn't support IE 7)
Regards,
Jason
________________________________
From: wtr-general-bounces at rubyforge.org [mailto: wtr-general-bounces at rubyforge.org <mailto:wtr-general-bounces at rubyforge.org> ] On Behalf Of Charley Baker
Sent: 2007年 1月26 日 13:17
To: wtr-general at rubyforge.org
Subject: Re: [Wtr-general] How to handle the popup security alert
You can use either/or. I'm working with AutoIt internally on our own version based off of WindowHelper which uses AutoIt. The only trick is adding support for IE 7, which instead of using popups, opens a new tab.
-Charley
On 1/24/07, Jason He < Jason.He at resilience.com <mailto:Jason.He at resilience.com> > wrote:
Hi,
I'm using https to do the test, and I want to push the security alert automatically when it popups, which of the following function is available?
clearSecurityAlertBox (WinClicker)
push_security_alert_yes (WindowHelper)
Besides, is it necessary to judge whether that security alert popup?
Regards,
Jason
_______________________________________________
Wtr-general mailing list
Wtr-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
Wtr-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070201/ecf3557d/attachment.html
More information about the Wtr-general
mailing list