# File lib/celerity/element_locator.rb, line 105 def find_by_label(what) obj = elements_by_tag_names(%w[label]).find { |e| Util.matches?(e.asText, what) } return nil unless obj && (ref = obj.getReferencedElement) return ref if @tags.include?(ref.getTagName) find_by_id obj.getForAttribute end