Unifying on more usage of css_search method

This commit is contained in:
Bryan Helmkamp 2008-11-27 00:36:07 -05:00
parent e7ddb4bdd1
commit 56dc8147f2
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ module Webrat
end end
def labels def labels
@labels ||= element.search("label").map { |element| Label.new(nil, element) } @labels ||= Webrat::XML.css_search(element, "label").map { |element| Label.new(nil, element) }
end end
def submit def submit

View File

@ -289,7 +289,7 @@ module Webrat
end end
def scoped_dom #:nodoc: def scoped_dom #:nodoc:
Webrat::XML.document(@scope.dom.search(@selector).first.to_html) Webrat::XML.document(Webrat::XML.css_search(@scope.dom, @selector).first.to_html)
end end
def locate_field(field_locator, *field_types) #:nodoc: def locate_field(field_locator, *field_types) #:nodoc: