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
#initialize(source, element, conditions) ⇒ ElementNotFoundError
Returns a new instance of ElementNotFoundError.
10 11 12 13 14 15 16 |
# File 'lib/mechanize/element_not_found_error.rb', line 10 def initialize source, element, conditions @source = source @element = element @conditions = conditions super "Element #{element} with conditions #{conditions} was not found" end |
Instance Attribute Details
#conditions ⇒ Object (readonly)
Returns the value of attribute conditions.
8 9 10 |
# File 'lib/mechanize/element_not_found_error.rb', line 8 def conditions @conditions end |
#element ⇒ Object (readonly)
Returns the value of attribute element.
7 8 9 |
# File 'lib/mechanize/element_not_found_error.rb', line 7 def element @element end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
6 7 8 |
# File 'lib/mechanize/element_not_found_error.rb', line 6 def source @source end |