module Capybara::Selenium::Find

def is_displayed_atom # rubocop:disable Naming/PredicateName

rubocop:disable Naming/PredicateName
def is_displayed_atom # rubocop:disable Naming/PredicateName
  @@is_displayed_atom ||= begin # rubocop:disable Style/ClassVars
    browser.send(:bridge).send(:read_atom, 'isDisplayed')
  rescue StandardError
    # If the atom doesn't exist or other error
    ''
  end
end