Skip to content

Commit

Permalink
Unifying on more usage of css_search method
Browse files Browse the repository at this point in the history
  • Loading branch information
brynary committed Nov 27, 2008
1 parent e7ddb4b commit 56dc814
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/webrat/core/form.rb
Expand Up @@ -57,7 +57,7 @@ def fields
end

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

def submit
Expand Down
2 changes: 1 addition & 1 deletion lib/webrat/core/scope.rb
Expand Up @@ -289,7 +289,7 @@ def page_dom #:nodoc:
end

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

def locate_field(field_locator, *field_types) #:nodoc:
Expand Down

0 comments on commit 56dc814

Please sign in to comment.