cleanup
This commit is contained in:
parent
f4ba9f4c1f
commit
df54422622
|
@ -307,7 +307,7 @@ module Capybara
|
|||
end
|
||||
|
||||
def matches_locator_filter?(node)
|
||||
return true if @selector.locator_filter.nil?
|
||||
return true unless @selector.locator_filter
|
||||
|
||||
@selector.locator_filter.matches?(node, @locator, @selector)
|
||||
end
|
||||
|
|
|
@ -11,9 +11,7 @@ module Capybara
|
|||
end
|
||||
|
||||
def matches?(node, value, context = nil)
|
||||
apply(node, nil, value, true, context)
|
||||
rescue Capybara::ElementNotFound
|
||||
false
|
||||
super(node, nil, value, context)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue