sauce 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sauce/config.rb +2 -1
- data/lib/sauce/integrations.rb +4 -4
- data/sauce.gemspec +1 -1
- metadata +3 -3
data/lib/sauce/config.rb
CHANGED
@@ -23,7 +23,8 @@ module Sauce
|
|
23
23
|
:browser => "firefox",
|
24
24
|
:browser_version => "3.6.",
|
25
25
|
:job_name => "Unnamed Ruby job",
|
26
|
-
:local_application_port => "3001"
|
26
|
+
:local_application_port => "3001",
|
27
|
+
:capture_traffic => false
|
27
28
|
}
|
28
29
|
|
29
30
|
ENVIRONMENT_VARIABLES = %w{SAUCE_HOST SAUCE_PORT SAUCE_BROWSER_URL SAUCE_USERNAME
|
data/lib/sauce/integrations.rb
CHANGED
@@ -54,7 +54,7 @@ begin
|
|
54
54
|
@selenium = Sauce::Selenium.new({:os => os, :browser => browser, :browser_version => version,
|
55
55
|
:job_name => "#{description}"})
|
56
56
|
end
|
57
|
-
@selenium.
|
57
|
+
@selenium.start_new_browser_session(:captureNetworkTraffic => config.capture_traffic?)
|
58
58
|
super(*args)
|
59
59
|
@selenium.stop
|
60
60
|
end
|
@@ -95,7 +95,7 @@ begin
|
|
95
95
|
@selenium = Sauce::Selenium.new({:os => os, :browser => browser, :browser_version => version,
|
96
96
|
:job_name => "#{description}"})
|
97
97
|
end
|
98
|
-
@selenium.
|
98
|
+
@selenium.start_new_browser_session(:captureNetworkTraffic => config.capture_traffic?)
|
99
99
|
begin
|
100
100
|
the_test.run
|
101
101
|
ensure
|
@@ -195,9 +195,9 @@ module Sauce
|
|
195
195
|
@browser = Sauce::Selenium.new(options)
|
196
196
|
end
|
197
197
|
if self.class.selenium_flags
|
198
|
-
@browser.start_new_browser_session(self.class.selenium_flags)
|
198
|
+
@browser.start_new_browser_session(self.class.selenium_flags.merge(:captureNetworkTraffic => config.capture_traffic?))
|
199
199
|
else
|
200
|
-
@browser.start_new_browser_session
|
200
|
+
@browser.start_new_browser_session(:captureNetworkTraffic => config.capture_traffic?)
|
201
201
|
end
|
202
202
|
super(*args, &blk)
|
203
203
|
@browser.stop
|
data/sauce.gemspec
CHANGED
metadata
CHANGED