Class: Watir::ElementExtensions::WhenPresentDecorator
- Defined in:
- lib/watir-classic/element_extensions.rb
Overview
Wraps a Celerity,Watir::Element so that any subsequent method calls are put on hold until the element is present on the page.
Instance Method Summary collapse
-
#id ⇒ Object
Returns element id.
-
#initialize(element, timeout) ⇒ WhenPresentDecorator
constructor
A new instance of WhenPresentDecorator.
- #method_missing(m, *args, &block) ⇒ Object
Constructor Details
#initialize(element, timeout) ⇒ WhenPresentDecorator
Returns a new instance of WhenPresentDecorator.
13 14 15 16 |
# File 'lib/watir-classic/element_extensions.rb', line 13 def initialize(element, timeout) @element = element @timeout = timeout end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method