unable to located object in general means that the page has not yet load (as 
far as I understand it. Instead of sleep (which just slows down everything) try 
wrapping your code as follows. (The below is just an example, and only my 
opinion. I'm sure there are 1000 better ways of doing this) :)

#Lets call our special function with your ID details
modalCheck(inpCheckBoxDC_19)
modalCheck(inpCheckBoxDC_23)
modalCheck(inpCheckBoxDC_20)
modalCheck(inpCheckBoxDC_1)
modalCheck(inpCheckBoxDC_12)

#In here, instead of sleeping, lets try to set it. If that fails
#Lets wait 1 second then try again, if that fails lets wait
#10 seconds and try again
def modalCheck (id)
                retryShort = true
                retryLong = true
                        
                begin
                        ie.modal_dialog.checkbox( :id, id ).set
                rescue
                        if retryA
                                sleep(1)
                                retryShort = false
                                retry
                        end
                        if retryB
                                sleep(10)
                                retryLong = false
                        else
                                raise
                        end
                end
end
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=4874&messageID=13542#13542
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to