1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
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