revo-webrat 0.7.0.1 → 0.7.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/webrat/core/scope.rb +1 -7
- data/revo-webrat.gemspec +1 -1
- metadata +1 -1
data/lib/webrat/core/scope.rb
CHANGED
@@ -332,13 +332,7 @@ module Webrat
|
|
332
332
|
end
|
333
333
|
|
334
334
|
def scoped_dom
|
335
|
-
|
336
|
-
# css selector?
|
337
|
-
@scope.dom.css(@selector).first
|
338
|
-
rescue Nokogiri::CSS::SyntaxError => e
|
339
|
-
# xpath selector?
|
340
|
-
@scope.dom.xpath(@selector).first
|
341
|
-
end
|
335
|
+
@scope.dom.css(@selector).first
|
342
336
|
end
|
343
337
|
|
344
338
|
def locate_field(field_locator, *field_types) #:nodoc:
|
data/revo-webrat.gemspec
CHANGED