Hi Jamuna
    Thank you for your help
    The problem still exist.
    I found that all the codes were paused to execute when the small window poped up.
    For example
 
    ie.link(:text,"Delete").click
    puts "111111111"
  After click the link "Delete",I found the small window poped up and the system didn't print the info "11111111" after I click the button "ok" on the samll window then I saw the system print out the "11111111".
   So It means that if the samll window poped up and not closed manually the ruby code below will not be executed.
   Does anyone meet this problem?
   Any advice is appreciated
   
jim
   
 
_________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Jamuna,
Nithyanandam (IE10)
Sent: Tuesday, September 20, 2005 3:49 AM
To: [email protected]
Subject: Re: [Wtr-general] Help,how to click the button of the windows
th at poped up by _javascript_?



Hi Jim,



a) Include the definition! of startClicker (available in winClicker.rb)

    def startClicker( button , waitTime = 0)
        w = WinClicker.new
        longName = $ie.dir.gsub("/" , "\\" )
        shortName = w.getShortFileName(longName)
        c = "start rubyw #{shortName }\\watir\\clickJSDialog.rb
#{button
} #{ waitTime} "
        puts "Starting #{c}"
        w.winsystem(c )  
        w=nil
    end

b) Before you click on delete call startClicker, say startClicker("OK")

c) Call the button click for Delete



Hope this helps you, all the best



Regards,

Jamuna Nithyanandam

________________________________

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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

Reply via email to