dill 0.5.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +0,0 @@
1
- module Dill
2
- # A Checkpoint that bypasses the standard wait time if the current
3
- # Capybara driver doesn't support waiting.
4
- class WidgetCheckpoint < Checkpoint
5
- # Returns the Capybara driver in use.
6
- def driver
7
- Capybara.current_session.driver
8
- end
9
-
10
- def initialize(*)
11
- if immediate?
12
- super 0
13
- else
14
- super
15
- end
16
- end
17
-
18
- protected
19
-
20
- def rescuable_errors
21
- @rescuable_errors ||= super + driver.invalid_element_errors
22
- end
23
-
24
- private
25
-
26
- def immediate?
27
- ! driver.wait?
28
- end
29
- end
30
- end
@@ -1,23 +0,0 @@
1
- module Dill
2
- module WidgetContainer
3
- def has_widget?(name)
4
- widget_class(name).present_in?(root)
5
- end
6
-
7
- def widget(name)
8
- widget_class(name).find_in(root)
9
- end
10
-
11
- private
12
-
13
- attr_writer :widget_lookup_scope
14
-
15
- def widget_class(name)
16
- WidgetName.new(name).to_class(widget_lookup_scope)
17
- end
18
-
19
- def widget_lookup_scope
20
- @widget_lookup_scope || self.class
21
- end
22
- end
23
- end