[Wtr-general] wait

Zeljko Filipin zeljko.filipin at gmail.com
Fri Dec 2 04:33:47 EST 2005


# some ruby code
sleep 1
# more ruby code
 
"sleep 1" will wait for 1 second before "# more ruby code" is executed, if
that is what you needed.
 
Zeljko
 
  _____  

From: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Hrishikesh Jamadagni
Sent: Friday, December 02, 2005 10:23 AM
To: wtr-general at rubyforge.org
Subject: [Wtr-general] wait



 

 

Hi 

 

Do you have the information if I can keep the program waiting before
checking for validation 

 

#Check  result

                        if ie.contains_text("Please fill all valid
information .") 

                                    #puts: "Test passed. Page contains the
text: Thank you for visiting PhoneClaim.com."

                                    worksheet.Range("z4#{line}").value =
"Fail"

                        else

                                    #puts: "Test failed! Page didn't contain
text: Thank you for visiting PhoneClaim.com."

                                    #worksheet.Range("z4#{line}").value =
"Step"

                        end

                        #worksheet.Range("z#{line}").value = "PASS"

                         

 

 

 

          Regards

          hrishi

            

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20051202/177a91df/attachment.html 


More information about the Wtr-general mailing list