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
|
end
|
||||||
|
|
||||||
def matches_locator_filter?(node)
|
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)
|
@selector.locator_filter.matches?(node, @locator, @selector)
|
||||||
end
|
end
|
||||||
|
|
|
@ -11,9 +11,7 @@ module Capybara
|
||||||
end
|
end
|
||||||
|
|
||||||
def matches?(node, value, context = nil)
|
def matches?(node, value, context = nil)
|
||||||
apply(node, nil, value, true, context)
|
super(node, nil, value, context)
|
||||||
rescue Capybara::ElementNotFound
|
|
||||||
false
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue