Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

Commit

Permalink
Element#to_subtype returns Element if non-supported tag found
Browse files Browse the repository at this point in the history
  • Loading branch information
jarmo committed Jan 19, 2012
1 parent 46c03d9 commit b6a32f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion watir/lib/watir/element.rb
Expand Up @@ -151,8 +151,10 @@ def to_subtype
self.send(ole_object.invoke('type'), :ole_object, ole_object)
elsif tag == "select"
self.select_list(:ole_object, ole_object)
else
elsif self.respond_to?(tag.downcase)
self.send(tag.downcase, :ole_object, ole_object)
else
self
end
end

Expand Down

0 comments on commit b6a32f4

Please sign in to comment.