Class: SPV::Element
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- SPV::Element
- Extended by:
- Forwardable
- Defined in:
- lib/site_prism_vcr/element.rb
Overview
Extends a native Capybara element with new methods.
Instance Method Summary collapse
- #click_and_apply_vcr(&block) ⇒ Object
-
#initialize(element, parent, &block) ⇒ Element
constructor
A new instance of Element.
Constructor Details
Instance Method Details
#click_and_apply_vcr(&block) ⇒ Object
17 18 19 |
# File 'lib/site_prism_vcr/element.rb', line 17 def click_and_apply_vcr(&block) shift_event { click }.apply_vcr(&block) end |