Class: Dill::WidgetCheckpoint

Inherits:
Checkpoint show all
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

#wait_time

Instance Method Summary collapse

Methods inherited from Checkpoint

wait_for, #wait_for

Constructor Details

#initializeWidgetCheckpoint

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

#driverObject

Returns the Capybara driver in use.



6
7
8
# File 'lib/dill/widget_checkpoint.rb', line 6

def driver
  Capybara.current_session.driver
end