I had the same thing.
Goto
C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir
Open non_control_elements
Find This:
# this class is used to deal with Div tags in the html page. http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/div.asp?frame=true
# It would not normally be created by users
class Div < NonControlElement
TAG = 'DIV'
end
Place this under that line.
# this class is used by My Companhy instead of a div tag.
class DD < NonControlElement
TAG = 'DD'
end
Include this in your script
def dd(how, what)
return dd.new(self, how, what)
end
#I use it like this.
label_id = $ie.dd(:after?, $ie.label(:text,label))
Hope this helps.
Remember to add this to your documentation because when you update you may have to re-add
Darin