gridium 1.1.14 → 1.1.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/driver.rb +21 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb7127799f6a1c83d18a5a139f7b84f9d54f7844
4
- data.tar.gz: 9af4c6ec7a7ebd639158cd076cb9f7d55326abff
3
+ metadata.gz: be781c1acdb27e8949a3c4b705c15056a47c840e
4
+ data.tar.gz: 9a8423051ea2983a6f76f46540359ba89d50365d
5
5
  SHA512:
6
- metadata.gz: 20f987944c09a29fa4ce3d58feb17c2415a4bcf3d0fee50b3823ab4f06c3b8b084033b68be4215779089e4822de734dc968bf98ed88db8a0d1dab9f2fc0c2b6e
7
- data.tar.gz: 0f3de5442e613dfb7955f4562b10ffa9fc22bb0745aa978998674f4df4a387fd8cbf6402f6615e2d5ce3dd2b0325f36fcfb63de7ffdb921acde08e47ae36f1b2
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
- :browser_name => Gridium.config.browser,
83
+ browser_name: Gridium.config.browser,
84
84
  # log all the things
85
- :loggingPrefs => {:browser => log_level,
86
- :client => log_level,
87
- :driver => log_level,
88
- :server => log_level}
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.14
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-18 00:00:00.000000000 Z
11
+ date: 2017-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler