saucer 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/saucer/driver.rb +6 -3
- data/lib/saucer/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: 8d33e4dedd27f235473ebe168e937341be939aa3
|
4
|
+
data.tar.gz: 587a6adfcb837922f40c508a550db2f84f815a0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2e0c7732193c8cf3782a92097abf502126316e1594ed00d5effe3041ef564f3ee47f78b08d60669af838cd8f8dee6a0f14f3b43c3be28d3d44b5b865dfb33a3
|
7
|
+
data.tar.gz: 641c2a891889fc370d4f88fcda087d4be9d464352a33338e82714b0b5aeac6163b269d546e2480afa57324b0f7848becc2c80026f526200d1dec4fedbb808e26
|
data/lib/saucer/driver.rb
CHANGED
@@ -3,10 +3,13 @@ module Saucer
|
|
3
3
|
|
4
4
|
attr_reader :driver, :config
|
5
5
|
|
6
|
-
def initialize(
|
6
|
+
def initialize(*args)
|
7
|
+
browser = args.pop if args.first.is_a? Symbol
|
8
|
+
browser = nil if browser == :remote
|
9
|
+
opt = args.first || {}
|
7
10
|
unless opt[:desired_capabilities].is_a? Selenium::WebDriver::Remote::Capabilities
|
8
11
|
opts = opt[:desired_capabilities] || {}
|
9
|
-
browser = opt.key?(:browser_name) ? opt[:browser_name].downcase.to_sym : :chrome
|
12
|
+
browser = opt.key?(:browser_name) ? opt[:browser_name].downcase.to_sym : browser || :chrome
|
10
13
|
opt[:desired_capabilities] = Selenium::WebDriver::Remote::Capabilities.send(browser, opts)
|
11
14
|
end
|
12
15
|
@config = Config::Selenium.new(opt)
|
@@ -14,7 +17,7 @@ module Saucer
|
|
14
17
|
opt[:url] = @config.url
|
15
18
|
opt[:desired_capabilities] = @config.capabilities
|
16
19
|
|
17
|
-
super
|
20
|
+
super(opt)
|
18
21
|
|
19
22
|
sauce.job_name = @config.sauce[:name]
|
20
23
|
sauce.build_name = @config.sauce[:build]
|
data/lib/saucer/version.rb
CHANGED