Sha256: 37f0beb3cf2fd1e0955c7ca0b520ee26643caf8b7d051c83ac761c890df63b9d
Contents?: true
Size: 889 Bytes
Versions: 12
Compression:
Stored size: 889 Bytes
Contents
# frozen_string_literal: true module PageMagic class Element # class NotFound - Used to represent elements which are missing. All method calls other than # to those that check visibility thrown a {PageMagic::ElementMissingException} exception class NotFound # @private [Capybara::ElementNotFound] exception def initialize(exception) @exception = exception end # @return [Boolean] - always false def visible? false end # @return [Boolean] - always false def present? false end # @raise [PageMagic::ElementMissingException] def method_missing(*_args) raise ElementMissingException, exception.message end # @return [Boolean] - always true def respond_to_missing?(*_args) true end private attr_reader :exception end end end
Version data entries
12 entries across 12 versions & 1 rubygems