gridium 1.1.14 → 1.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/driver.rb +21 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be781c1acdb27e8949a3c4b705c15056a47c840e
|
4
|
+
data.tar.gz: 9a8423051ea2983a6f76f46540359ba89d50365d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3feeaf5b3da720bb7cb62c20c065581a440c391b111701111f7cac61b665b3f6fee7d8781d4f692f596d019ce698aa731d86eb28d032873d69a29a9f990c4f2c
|
7
|
+
data.tar.gz: b01d84a824885a4fd950c435b91cb72b3ff9951a786004e609e3f71f6d45c140731448cd05a4c4f4e2a45dfd8071cd8d29c957020cd945a6cf866e1d70190ebf
|
data/lib/driver.rb
CHANGED
@@ -41,7 +41,7 @@ class Driver
|
|
41
41
|
str if File.exist?(str)
|
42
42
|
end
|
43
43
|
else
|
44
|
-
@@driver = Selenium::WebDriver.for(Gridium.config.browser)
|
44
|
+
@@driver = Selenium::WebDriver.for(Gridium.config.browser, desired_capabilities: _set_capabilities())
|
45
45
|
end
|
46
46
|
if Gridium.config.screenshots_to_s3
|
47
47
|
#do stuff
|
@@ -80,12 +80,27 @@ class Driver
|
|
80
80
|
def self._set_capabilities()
|
81
81
|
log_level = Gridium.config.selenium_log_level
|
82
82
|
Selenium::WebDriver::Remote::Capabilities.new(
|
83
|
-
:
|
83
|
+
browser_name: Gridium.config.browser,
|
84
84
|
# log all the things
|
85
|
-
:
|
86
|
-
|
87
|
-
|
88
|
-
|
85
|
+
loggingPrefs: {
|
86
|
+
:browser => log_level,
|
87
|
+
:client => log_level,
|
88
|
+
:driver => log_level,
|
89
|
+
:server => log_level
|
90
|
+
},
|
91
|
+
chrome_options: {
|
92
|
+
'args' => ['--start-maximized'],
|
93
|
+
'prefs' => {
|
94
|
+
'download': {
|
95
|
+
'prompt_for_download': false,
|
96
|
+
'directory_upgrade': true,
|
97
|
+
'default_directory': Dir.pwd
|
98
|
+
},
|
99
|
+
'save_file': {
|
100
|
+
'default_directory': Dir.pwd
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
89
104
|
)
|
90
105
|
end
|
91
106
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gridium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Urban
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|