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

On 9/30/05, Max Kononovich <[EMAIL PROTECTED]> wrote:
Hello,
 
Firstly I use the following structure
require 'watir/WindowHelper'
#and then
$helper = WindowHelper.new
$ie.link(:url, /menu_delete/).click
$helper.push_confirm_button_ok()
But the helper didn't click on the message from the first time. Then you propose to paste
$helper.push_confirm_button_ok()
before the $ie.link(:url, /menu_delete/).click In this case the link doesn't click at all - helper waits for a cofirmation. So it doesn't help. Could you please propose somthing else.
 
Thanks,
Max

Вы уже с Yahoo!? Испытайте обновленную и улучшенную Yahoo! Почту!
http://ru.mail.yahoo.com


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general



_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to