mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
cleanup
This commit is contained in:
parent
f4ba9f4c1f
commit
df54422622
2 changed files with 2 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue