Unifying on more usage of css_search method
This commit is contained in:
parent
e7ddb4bdd1
commit
56dc8147f2
@ -57,7 +57,7 @@ module Webrat
|
||||
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
|
||||
|
@ -289,7 +289,7 @@ module Webrat
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user