Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > winclicker problem

Reply
Thread Tools

winclicker problem

 
 
Erika
Guest
Posts: n/a
 
      11-13-2008
[Note: parts of this message were removed to make it a legal post.]

Hi,

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

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,
Erika



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
winclicker.rb:232 segmentation fault due to data corruption Robert Wiley Ruby 0 12-07-2010 08:20 PM
Winclicker is not clicking the button on pop-up window. Bhavesh Sharma Ruby 1 01-20-2008 03:38 PM
Problem problem problem :( Need Help Mike ASP General 2 05-11-2004 08:36 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57