Forum: Ruby winclicker problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Erika (Guest)
on 2008-11-13 12:15
(Received via mailing list)

I used the following code
def myclick(button, waitTime = 3)
w =
longName = $ie.dir.gsub("/" , "\\" )
shortName = w.getShortFileName(longName)
c = "start ruby #{shortName}\\watir\\clickJSDialog.rb #{button}
#{waitTime} "
puts "Starting #{c}"

Then, before the button i want to click that generates the popup, added:
myclick ("Ok",3)

But after I updated the ruby it doesn't have any effect. Another
command page is opened but it disappears very quickly, maybe is an error
there but can't be seen. The IE wasn't changed in the mean time.Did
anyone else experienced the same problem?

I would be grateful for any idea.

Thank you,
This topic is locked and can not be replied to.