Exception: Appom::ElementNotFoundError
- Inherits:
-
ElementError
- Object
- StandardError
- AppomError
- ElementError
- Appom::ElementNotFoundError
- Defined in:
- lib/appom/exceptions.rb
Overview
Raised when an element cannot be found within the timeout
Instance Attribute Summary
Attributes inherited from AppomError
Instance Method Summary collapse
-
#initialize(selector = nil, timeout = nil) ⇒ ElementNotFoundError
constructor
A new instance of ElementNotFoundError.
Methods inherited from AppomError
Constructor Details
#initialize(selector = nil, timeout = nil) ⇒ ElementNotFoundError
Returns a new instance of ElementNotFoundError.
39 40 41 42 43 44 |
# File 'lib/appom/exceptions.rb', line 39 def initialize(selector = nil, timeout = nil) = 'Element not found' += " with selector: #{selector}" if selector += " within #{timeout}s" if timeout super(, { selector: selector, timeout: timeout }) end |