crabfarm 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crabfarm/modes/recorder.rb +4 -6
- data/lib/crabfarm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d125e666643d25a2a8ec454491bbbff92cf7f08
|
4
|
+
data.tar.gz: 20e33641d3f93933b304ef6aae3b3872f4eff6f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 275850f791673c8a6357092d5a88ce63caeb18daf5e93446eee809181a258aa5e8309a604ce1e70401e66b4072be5a86377f576407da1414d02a02f3a8346416
|
7
|
+
data.tar.gz: d28ed53ade466f34d05564be93486cab3b48fb94ad4e94799bf81afe3516a1ff2a974963e758841dfc87562f1490e9c42c1f3b01eead193feb51ceaa333c3d9e
|
@@ -25,11 +25,9 @@ module Crabfarm
|
|
25
25
|
crabtrap.start
|
26
26
|
|
27
27
|
begin
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
driver = DefaultDriverFactory.new(driver_config).build_driver nil
|
28
|
+
browser_name = Crabfarm.config.recorder_driver
|
29
|
+
browser_factory = Strategies.load(:browser, browser_name).new "127.0.0.1:#{crabtrap.port}"
|
30
|
+
driver = browser_factory.build_driver nil
|
33
31
|
|
34
32
|
begin
|
35
33
|
puts "Press Ctrl-C or close browser to stop #{_replay ? 'playback' : 'capturing'}."
|
@@ -37,7 +35,7 @@ module Crabfarm
|
|
37
35
|
driver.current_url
|
38
36
|
sleep 1.0
|
39
37
|
end
|
40
|
-
rescue
|
38
|
+
rescue Exception => e
|
41
39
|
# noop
|
42
40
|
end
|
43
41
|
|
data/lib/crabfarm/version.rb
CHANGED