[Wtr-general] Problem with Security Alert

Robert Gilmore robgil at exmsft.com
Mon Apr 10 20:37:32 EDT 2006


The method described in this blog worked for dismissing JavaScript pop-ups -
not sure if it works for security alert windows, I haven't tried it - worth
a try though...

http://www.hanselman.com/blog/ClickingAJavaScriptDialogUsingWatir.aspx



On 4/10/06, Rodrigo Julian Martin <rodrigo.martin at enratio.com> wrote:
>
> Hello everybody! I´m trying to get ride of an Windows Security Alert... I
> was reading the faq and found the following code:
>
> [code]
> require 'watir'
> include Watir
> require 'watir/windowhelper'
> t = Thread.new(){
>     puts "Started thread for win helper"
>     system('winHelper_security.rb')
> }
> ie=IE.new()
> m = Thread.new(ie) {
>     ie.goto('https://the_site_that_causes_the_security_alert'<https://the_site_that_causes_the_security_alert%27>
> )
> }
> m.join
> t.join
> # now resume normal watir code
> ie.text_field(:index,1).set('my_user_name')
> [/code]
>
> But it´s not working... I've downloaded the latest WindowHelper.rb file
> from CVS...
> What could be the reason that this isn´t working?
> My Ruby Version is 1.82 and Watir Version is 1.41
>
> Thanks for all your help
> Regards
>
>
> Rodrigo julian Martin
>
> _______________________________________________
> 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/20060410/3dfd81e9/attachment.html 


More information about the Wtr-general mailing list