Class: Dill::WidgetCheckpoint
- Inherits:
-
Checkpoint
- Object
- Checkpoint
- Dill::WidgetCheckpoint
- Defined in:
- lib/dill/widget_checkpoint.rb
Overview
A Checkpoint that bypasses the standard wait time if the current Capybara driver doesn’t support waiting.
Instance Attribute Summary
Attributes inherited from Checkpoint
Instance Method Summary collapse
-
#driver ⇒ Object
Returns the Capybara driver in use.
-
#initialize ⇒ WidgetCheckpoint
constructor
A new instance of WidgetCheckpoint.
Methods inherited from Checkpoint
Constructor Details
#initialize ⇒ WidgetCheckpoint
Returns a new instance of WidgetCheckpoint.
10 11 12 13 14 15 16 |
# File 'lib/dill/widget_checkpoint.rb', line 10 def initialize(*) if immediate? super 0 else super end end |
Instance Method Details
#driver ⇒ Object
Returns the Capybara driver in use.
6 7 8 |
# File 'lib/dill/widget_checkpoint.rb', line 6 def driver .current_session.driver end |