Class: WatirDrops::TrainingWheels
- Inherits:
-
PageObject
- Object
- PageObject
- WatirDrops::TrainingWheels
- Defined in:
- lib/watir_drops/training_wheels.rb
Instance Attribute Summary
Attributes inherited from PageObject
Instance Method Summary collapse
Methods inherited from PageObject
browser, browser=, element, elements, #fill_form, #goto, inherited, #initialize, #inspect, #method_missing, #on_page?, page_title, page_url, #page_verifiable?, #respond_to_missing?, visit
Constructor Details
This class inherits a constructor from WatirDrops::PageObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class WatirDrops::PageObject
Instance Method Details
#use ⇒ Object
57 58 59 |
# File 'lib/watir_drops/training_wheels.rb', line 57 def use new.tap { yield if block_given? } end |
#visit(*args) ⇒ Object
50 51 52 53 54 55 |
# File 'lib/watir_drops/training_wheels.rb', line 50 def visit(*args) new.tap do |page| page.goto(*args) yield if block_given? end end |