watirmark 5.29.3 → 5.29.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0a29b86dfedffc425b759146a17e4e131b19c47
4
- data.tar.gz: 70c357b0cadb675104ec1bdc982a81340e05bd05
3
+ metadata.gz: 09f73a7b73dc1203e630486a4936f8bcbe40453f
4
+ data.tar.gz: 5dc03677def84657da126b1079520216a7456839
5
5
  SHA512:
6
- metadata.gz: a4e21b4bd41ecc14958cda3f64a1a686da4b2d3206086b6465da3c01873e9250f474a82098ac6020f094d5c020b1a7a4051e1da4e1b299de0eca16d16d2b8160
7
- data.tar.gz: eb0dc66a6e7ef0764e3d29fe705277918977118bdb6bd953123e2ad419155d38d9d97d7a1dc42b57cdc518ce6a30324fe700d8c1d554e814d3f23593b1aa70f7
6
+ metadata.gz: 9e24fe3f1afcfe6ba36be3d88cd695e3efecff9977acbcca6041464b55bef3057ced81941f0cdd66d28cdec48d2c2e72158f9f508669edfe75c0febd31f000ce
7
+ data.tar.gz: 2dcde0786ab0fdc20feeeaeb0517605deb5d9e5249171558d39d3ac19f17690829bf6429f25c772fd413291e96d714f073e187c2eb6ee9ba417bc058c50e6627
@@ -56,9 +56,23 @@ module Watirmark
56
56
  config.firefox_profile = default_firefox_profile
57
57
  elsif config.webdriver.to_s.eql? 'firefox_proxy'
58
58
  config.firefox_profile = proxy_firefox_profile(config.proxy_host, config.proxy_port)
59
+ elsif config.webdriver.to_s.eql? 'chrome'
60
+ config.chrome_profile = default_chrome_profile
59
61
  end
60
62
  end
61
63
 
64
+ def default_chrome_profile
65
+ download_directory = File.join(Configuration.instance.projectpath, "reports", "downloads")
66
+ download_directory.gsub!("/", "\\") if Selenium::WebDriver::Platform.windows?
67
+
68
+ {
69
+ :download => {
70
+ :prompt_for_download => false,
71
+ :default_directory => download_directory
72
+ }
73
+ }
74
+ end
75
+
62
76
  def default_firefox_profile
63
77
  file_types = "text/comma-separated-values,text/csv,application/pdf, application/x-msdos-program, application/x-unknown-application-octet-stream,
64
78
  application/vnd.ms-powerpoint, application/excel, application/vnd.ms-publisher, application/x-unknown-message-rfc822, application/vnd.ms-excel,
@@ -187,6 +201,8 @@ module Watirmark
187
201
  Watir::Browser.new :firefox, profile: config.firefox_profile, http_client: client
188
202
  when :sauce
189
203
  Watir::Browser.new use_sauce
204
+ when :chrome
205
+ Watir::Browser.new :chrome, prefs: config.chrome_profile, http_client: client
190
206
  else
191
207
  Watir::Browser.new config.webdriver.to_sym, http_client: client
192
208
  end
@@ -1,5 +1,5 @@
1
1
  module Watirmark
2
2
  module Version
3
- STRING = '5.29.3'
3
+ STRING = '5.29.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watirmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.29.3
4
+ version: 5.29.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugh McGowan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-21 00:00:00.000000000 Z
11
+ date: 2016-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: watir-webdriver
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: american_date
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: logger
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.2.8
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.2.8
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: uuid
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 2.3.7
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 2.3.7
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: nokogiri
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 1.6.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.6.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: thor
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: 0.19.1
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.19.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: activesupport
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '4.0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '4.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: headless
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  description: Watirmark is an MVC test framework for watir-webdriver
@@ -220,33 +220,32 @@ require_paths:
220
220
  - lib
221
221
  required_ruby_version: !ruby/object:Gem::Requirement
222
222
  requirements:
223
- - - '>='
223
+ - - ">="
224
224
  - !ruby/object:Gem::Version
225
225
  version: '0'
226
226
  required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  requirements:
228
- - - '>='
228
+ - - ">="
229
229
  - !ruby/object:Gem::Version
230
230
  version: '0'
231
231
  requirements: []
232
232
  rubyforge_project:
233
- rubygems_version: 2.4.8
233
+ rubygems_version: 2.4.6
234
234
  signing_key:
235
235
  specification_version: 4
236
- summary: watirmark 5.29.3
236
+ summary: watirmark 5.29.4
237
237
  test_files:
238
- - spec/model_traits_spec.rb
239
- - spec/session_spec.rb
238
+ - spec/assertions_spec.rb
239
+ - spec/config_spec.rb
240
+ - spec/controller_actions_spec.rb
240
241
  - spec/controller_spec.rb
241
242
  - spec/controllers_and_models_spec.rb
243
+ - spec/helper_methods_spec.rb
242
244
  - spec/model_factory_spec.rb
245
+ - spec/model_traits_spec.rb
243
246
  - spec/open_struct_spec.rb
244
- - spec/helper_methods_spec.rb
245
- - spec/controller_actions_spec.rb
246
- - spec/watir_webdriver_spec.rb
247
- - spec/spec_helper.rb
248
247
  - spec/page_spec.rb
249
248
  - spec/process_page_spec.rb
250
- - spec/assertions_spec.rb
251
- - spec/config_spec.rb
252
- has_rdoc:
249
+ - spec/session_spec.rb
250
+ - spec/spec_helper.rb
251
+ - spec/watir_webdriver_spec.rb