|
Hello David! I was facing the same problem in my tests,
why don’t you try installing WET? It has great support for handling modal
popups like these… An example of code using WET: $browser_wet=Browser.new() $browser_wet.goto(url, OUTOFPROCESS) #If
the popup appears at load time, use this.. $browser_wet.Dialog("title:=Security
Alert").Button("index:=1").click If the popup appears after clicking a
link, button or image, use sentences like this: browser_wet.Link("text:=Open Security
Popup").click_without_blocking browser_wet.Dialog("title:=Security
Alert").Button("index:=1").click Hope this help, try it out… I guess latest Watir have support for this
kind of popup too, but I’m not sure because I couldn’t upgrade to
1.5 yet. Cheers! Rodrigo Julian Martin From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Hello, I'm testing on a QA site that keeps giving me that annoying
"This page contains both secure and nonsecure items" that keeps
interfering with my scripts. Now I know because of the environment I'm working
in I will be accessing secure and nonsecure sites causing this message to
appear, so my solution is to dismiss the dialog box from within my scripts. So
far I've tried all the tricks I've learned since I started using WATIR for handling
popup messages, but I've had no success. Has anybody encountered this problem before? Has anybody
successfully been able to dismiss this dialog box? Thanks in advance. |
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
