Method: Capybara::Session#has_no_xpath?
- Defined in:
- lib/capybara/session.rb
#has_no_xpath?(path, options = {}) ⇒ Boolean
153 154 155 156 157 158 159 160 161 162 163 164 165 |
# File 'lib/capybara/session.rb', line 153 def has_no_xpath?(path, ={}) wait_conditionally_until do results = all(:xpath, path, ) if [:count] results.size != [:count] else results.empty? end end rescue Capybara::TimeoutError return false end |