winclicker problem

Discussion in 'Ruby' started by Erika, Nov 13, 2008.

  1. Erika

    Erika Guest

    [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
     
    Erika, Nov 13, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Suurkuusk
    Replies:
    0
    Views:
    4,042
    Andreas Suurkuusk
    Jul 27, 2003
  2. Ted Miller
    Replies:
    0
    Views:
    5,230
    Ted Miller
    Sep 13, 2003
  3. Mike

    Problem problem problem :( Need Help

    Mike, May 7, 2004, in forum: ASP General
    Replies:
    2
    Views:
    586
    Bullschmidt
    May 11, 2004
  4. Bhavesh Sharma
    Replies:
    1
    Views:
    128
    Axel Etzold
    Jan 20, 2008
  5. Robert Wiley
    Replies:
    0
    Views:
    113
    Robert Wiley
    Dec 7, 2010
Loading...

Share This Page