I need to access an object with Watir through the name without knowing
what kind of object is.
For example the control could be a button or a link and
I would like to do something like:

require 'watir'
include Watir
ie=IE.new
ie.goto("file://c:/temp2.htm")

ie.object(:name,"imp1").click()

Is there any way????
Thank you in advance.
-- 
Posted via http://www.ruby-forum.com/.