class PageMagic::Element::NotFound
class NotFound
- Used to represent elements which are missing. All method calls other than to those that check visibility thrown a {PageMagic::ElementMissingException} exception
Attributes
exception[R]
Public Class Methods
new(exception)
click to toggle source
@private [Capybara::ElementNotFound] exception
# File lib/page_magic/element/not_found.rb, line 9 def initialize(exception) @exception = exception end
Public Instance Methods
method_missing(*_args)
click to toggle source
@raise [PageMagic::ElementMissingException]
# File lib/page_magic/element/not_found.rb, line 24 def method_missing(*_args) raise ElementMissingException, exception.message end
present?()
click to toggle source
@return [Boolean] - always false
# File lib/page_magic/element/not_found.rb, line 19 def present? false end
respond_to_missing?(*_args)
click to toggle source
@return [Boolean] - always true
# File lib/page_magic/element/not_found.rb, line 29 def respond_to_missing?(*_args) true end
visible?()
click to toggle source
@return [Boolean] - always false
# File lib/page_magic/element/not_found.rb, line 14 def visible? false end