module Thoran::Selenium::WebDriver::SearchContext::ElementPresentQ

Public Instance Methods

element_present?(selector_type, selector) click to toggle source
# File lib/Thoran/Selenium/WebDriver/SearchContext/ElementPresentQ/element_presentQ.rb, line 20
def element_present?(selector_type, selector)
  bridge.find_element_by(selector_type, selector)
  true
rescue ::Selenium::WebDriver::Error::NoSuchElementError
  false
end