module Thoran::Selenium::WebDriver::SearchContext::ElementsPresentQ

Public Instance Methods

elements_present?(selector_type, selector) click to toggle source
# File lib/Thoran/Selenium/WebDriver/SearchContext/ElementsPresentQ/elements_presentQ.rb, line 20
def elements_present?(selector_type, selector)
  bridge.find_elements_by(selector_type, selector)
  true
rescue ::Selenium::WebDriver::Error::NoSuchElementError
  false
end