Exception: Appom::InvalidElementError
- Inherits:
-
ElementError
- Object
- StandardError
- AppomError
- ElementError
- Appom::InvalidElementError
- Defined in:
- lib/appom/exceptions.rb
Overview
Raised when an element was defined without proper arguments
Instance Attribute Summary
Attributes inherited from AppomError
Instance Method Summary collapse
-
#initialize(element_name = nil) ⇒ InvalidElementError
constructor
A new instance of InvalidElementError.
Methods inherited from AppomError
Constructor Details
#initialize(element_name = nil) ⇒ InvalidElementError
Returns a new instance of InvalidElementError.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/appom/exceptions.rb', line 25 def initialize(element_name = nil) if element_name.nil? = 'You should provide search arguments in element creation' else = 'Element' += " '#{element_name}'" if element_name += ' was defined without proper selector arguments' end super() end |