lib/page-object/elements/element.rb in page-object-0.3.1 vs lib/page-object/elements/element.rb in page-object-0.3.2

- old
+ new

@@ -56,10 +56,10 @@ end protected def self.should_build_watir_xpath identifier - ['table', 'span', 'div', 'td', 'li', 'ul', 'ol'].include? identifier[:tag_name] and identifier[:name] + ['table', 'span', 'div', 'td', 'li', 'ul', 'ol', 'h1', 'h2', 'h3'].include? identifier[:tag_name] and identifier[:name] end def self.build_xpath_for identifier tag_locator = identifier.delete(:tag_name) idx = identifier.delete(:index)