This commit is contained in:
Thomas Walpole 2018-11-14 11:46:32 -08:00
parent f4ba9f4c1f
commit df54422622
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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