Hi Max,
I have played with something similar to this in the past. I found that,
when linked up to IE, the whole process that your script is running in
will become blocked when a Javascript pop-up appears. This seems to
affect all threads that are part of that process.
One possible solution would be to spawn a separate process to run
myclicker.rb. There may well be a better solution (and I would enjoy
seeing it too!).
Alf
Max Kononovich wrote:
>Hello
>
>I'll try the algorithm below. But it seems that nohig
>happens. I mean the comfirmation message appeares
>however $helper doesn't click on the button. Please,
>tell if you know the solution.
>
>Thanks,
>
>Max
>
>
>
>>Hi Max,
>>
>>Try this out like this:
>>
>># This you should write in the script
>>Thread.new { system("rubyw myclicker.rb") }
>>$ie.link(:url, /menu_delete/).click
>>
>>Now create a new file called myclicker.rb
>>require 'watir/WindowHelper'
>>$helper = WindowHelper.new
>>$helper.push_confirm_button_ok()
>>
>>Hope this helps,
>>
>>P.S.: You can change the name of the file from
>>myclicker.rb but make sure
>>both the names are same (the names shown in bold
>>text).
>>
>>Regards,
>>Angrez
>>
>>
>
>
>
>
>
>
>
>________________________________________________________
>Вы уже с Yahoo!?
>Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo.com
>_______________________________________________
>Wtr-general mailing list
>[email protected]
>http://rubyforge.org/mailman/listinfo/wtr-general
>
>
--
Alf Whitehead [EMAIL PROTECTED] 416-214-4977 x260
Quality Assurance Specialist
Klick Communications, http://klick.com/
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general