Exception: Mechanize::ElementNotFoundError
- Defined in:
- lib/mechanize/element_not_found_error.rb
Overview
Raised when an an element was not found on the Page
Instance Attribute Summary collapse
-
#conditions ⇒ Object
readonly
Returns the value of attribute conditions.
-
#element ⇒ Object
readonly
Returns the value of attribute element.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, element, conditions) ⇒ ElementNotFoundError
constructor
A new instance of ElementNotFoundError.
Constructor Details
permalink #initialize(source, element, conditions) ⇒ ElementNotFoundError
Returns a new instance of ElementNotFoundError.
11 12 13 14 15 16 17 |
# File 'lib/mechanize/element_not_found_error.rb', line 11 def initialize source, element, conditions @source = source @element = element @conditions = conditions super "Element #{element} with conditions #{conditions} was not found" end |
Instance Attribute Details
permalink #conditions ⇒ Object (readonly)
Returns the value of attribute conditions.
9 10 11 |
# File 'lib/mechanize/element_not_found_error.rb', line 9 def conditions @conditions end |
permalink #element ⇒ Object (readonly)
Returns the value of attribute element.
8 9 10 |
# File 'lib/mechanize/element_not_found_error.rb', line 8 def element @element end |
permalink #source ⇒ Object (readonly)
Returns the value of attribute source.
7 8 9 |
# File 'lib/mechanize/element_not_found_error.rb', line 7 def source @source end |