def has_no_selector?(*args)
options = if args.last.is_a?(Hash) then args.last else {} end
wait_conditionally_until do
results = all(*args)
case
when results.empty?
true
when options[:between]
not(options[:between] === results.size)
when options[:count]
not(options[:count].to_i == results.size)
when options[:maximum]
not(options[:maximum].to_i >= results.size)
when options[:minimum]
not(options[:minimum].to_i <= results.size)
else
results.empty?
end
end
rescue Capybara::TimeoutError
return false
end