webdrivers 4.4.2 → 4.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/LICENSE.txt +0 -0
- data/README.md +10 -1
- data/lib/webdrivers.rb +0 -0
- data/lib/webdrivers/Rakefile +0 -0
- data/lib/webdrivers/chrome_finder.rb +2 -2
- data/lib/webdrivers/chromedriver.rb +31 -9
- data/lib/webdrivers/common.rb +0 -0
- data/lib/webdrivers/edge_finder.rb +11 -0
- data/lib/webdrivers/edgedriver.rb +35 -8
- data/lib/webdrivers/geckodriver.rb +0 -0
- data/lib/webdrivers/iedriver.rb +0 -0
- data/lib/webdrivers/logger.rb +0 -0
- data/lib/webdrivers/network.rb +0 -0
- data/lib/webdrivers/railtie.rb +0 -0
- data/lib/webdrivers/system.rb +12 -2
- data/lib/webdrivers/tasks/chromedriver.rake +0 -0
- data/lib/webdrivers/tasks/edgedriver.rake +0 -0
- data/lib/webdrivers/tasks/geckodriver.rake +0 -0
- data/lib/webdrivers/tasks/iedriver.rake +0 -0
- data/lib/webdrivers/version.rb +1 -1
- data/spec/spec_helper.rb +0 -0
- data/spec/webdrivers/chrome_finder_spec.rb +1 -1
- data/spec/webdrivers/chromedriver_spec.rb +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/application.css +799 -0
- data/spec/webdrivers/coverage/assets/0.10.2/application.js +1707 -0
- data/spec/webdrivers/coverage/assets/0.10.2/colorbox/border.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/colorbox/controls.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/colorbox/loading.gif +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/colorbox/loading_background.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/favicon_green.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/favicon_red.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/favicon_yellow.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/loading.gif +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/magnify.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/spec/webdrivers/coverage/index.html +3512 -0
- data/spec/webdrivers/edge_finder_spec.rb +0 -0
- data/spec/webdrivers/edgedriver_spec.rb +0 -0
- data/spec/webdrivers/geckodriver_spec.rb +0 -0
- data/spec/webdrivers/i_edriver_spec.rb +0 -0
- data/spec/webdrivers/system_spec.rb +27 -21
- data/spec/webdrivers/webdrivers_spec.rb +0 -0
- data/spec/webdrivers_proxy_support_spec.rb +0 -0
- metadata +60 -10
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -2,36 +2,42 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
wsl_proc_contents = [
|
6
|
-
'Linux version 4.4.0-18362-Microsoft',
|
7
|
-
'(Microsoft@Microsoft.com)',
|
8
|
-
'(gcc version 5.4.0 (GCC) )',
|
9
|
-
'#836-Microsoft',
|
10
|
-
'Mon May 05 16:04:00 PST 2020'
|
11
|
-
].join ' '
|
12
|
-
|
13
5
|
describe Webdrivers::System do
|
14
|
-
describe '#
|
15
|
-
|
16
|
-
|
6
|
+
describe '#wsl_v1?' do
|
7
|
+
subject { described_class.wsl_v1? }
|
8
|
+
|
9
|
+
before do
|
10
|
+
allow(described_class).to receive(:platform).and_return(platform)
|
11
|
+
allow(File).to receive(:open).with('/proc/version').and_return(StringIO.new(wsl_proc_version_contents))
|
12
|
+
end
|
17
13
|
|
18
|
-
|
19
|
-
|
14
|
+
let(:platform) { 'linux' }
|
15
|
+
let(:wsl_proc_version_contents) { '' }
|
20
16
|
|
21
|
-
|
17
|
+
context 'when the current platform is linux and WSL version is 1' do
|
18
|
+
let(:wsl_proc_version_contents) do
|
19
|
+
'Linux version 4.4.0-18362-Microsoft'\
|
20
|
+
'(Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) )'\
|
21
|
+
'#836-Microsoft Mon May 05 16:04:00 PST 2020'
|
22
22
|
end
|
23
|
+
|
24
|
+
it { is_expected.to eq true }
|
23
25
|
end
|
24
26
|
|
25
|
-
context 'when the current platform is
|
26
|
-
|
27
|
+
context 'when the current platform is linux and WSL version is 2' do
|
28
|
+
let(:wsl_proc_version_contents) do
|
29
|
+
'Linux version 4.19.84-microsoft-standard '\
|
30
|
+
'(oe-user@oe-host) (gcc version 8.2.0 (GCC)) '\
|
31
|
+
'#1 SMP Wed Nov 13 11:44:37 UTC 2019'
|
32
|
+
end
|
27
33
|
|
28
|
-
it
|
29
|
-
|
34
|
+
it { is_expected.to eq false }
|
35
|
+
end
|
30
36
|
|
31
|
-
|
37
|
+
context 'when the current platform is mac' do
|
38
|
+
let(:platform) { 'mac' }
|
32
39
|
|
33
|
-
|
34
|
-
end
|
40
|
+
it { is_expected.to eq false }
|
35
41
|
end
|
36
42
|
end
|
37
43
|
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webdrivers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Fortner
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-01-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ffi
|
@@ -205,6 +205,31 @@ files:
|
|
205
205
|
- spec/spec_helper.rb
|
206
206
|
- spec/webdrivers/chrome_finder_spec.rb
|
207
207
|
- spec/webdrivers/chromedriver_spec.rb
|
208
|
+
- spec/webdrivers/coverage/assets/0.10.2/application.css
|
209
|
+
- spec/webdrivers/coverage/assets/0.10.2/application.js
|
210
|
+
- spec/webdrivers/coverage/assets/0.10.2/colorbox/border.png
|
211
|
+
- spec/webdrivers/coverage/assets/0.10.2/colorbox/controls.png
|
212
|
+
- spec/webdrivers/coverage/assets/0.10.2/colorbox/loading.gif
|
213
|
+
- spec/webdrivers/coverage/assets/0.10.2/colorbox/loading_background.png
|
214
|
+
- spec/webdrivers/coverage/assets/0.10.2/favicon_green.png
|
215
|
+
- spec/webdrivers/coverage/assets/0.10.2/favicon_red.png
|
216
|
+
- spec/webdrivers/coverage/assets/0.10.2/favicon_yellow.png
|
217
|
+
- spec/webdrivers/coverage/assets/0.10.2/loading.gif
|
218
|
+
- spec/webdrivers/coverage/assets/0.10.2/magnify.png
|
219
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
|
220
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
|
221
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
|
222
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
|
223
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png
|
224
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
|
225
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
|
226
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
|
227
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png
|
228
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png
|
229
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png
|
230
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png
|
231
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png
|
232
|
+
- spec/webdrivers/coverage/index.html
|
208
233
|
- spec/webdrivers/edge_finder_spec.rb
|
209
234
|
- spec/webdrivers/edgedriver_spec.rb
|
210
235
|
- spec/webdrivers/geckodriver_spec.rb
|
@@ -218,8 +243,8 @@ licenses:
|
|
218
243
|
metadata:
|
219
244
|
bug_tracker_uri: https://github.com/titusfortner/webdrivers/issues
|
220
245
|
changelog_uri: https://github.com/titusfortner/webdrivers/blob/master/CHANGELOG.md
|
221
|
-
documentation_uri: https://www.rubydoc.info/gems/webdrivers/4.
|
222
|
-
source_code_uri: https://github.com/titusfortner/webdrivers/tree/v4.
|
246
|
+
documentation_uri: https://www.rubydoc.info/gems/webdrivers/4.5.0
|
247
|
+
source_code_uri: https://github.com/titusfortner/webdrivers/tree/v4.5.0
|
223
248
|
post_install_message:
|
224
249
|
rdoc_options: []
|
225
250
|
require_paths:
|
@@ -235,18 +260,43 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
235
260
|
- !ruby/object:Gem::Version
|
236
261
|
version: '0'
|
237
262
|
requirements: []
|
238
|
-
rubygems_version: 3.
|
263
|
+
rubygems_version: 3.0.3
|
239
264
|
signing_key:
|
240
265
|
specification_version: 4
|
241
266
|
summary: Easy download and use of browser drivers.
|
242
267
|
test_files:
|
243
268
|
- spec/spec_helper.rb
|
269
|
+
- spec/webdrivers/chromedriver_spec.rb
|
244
270
|
- spec/webdrivers/chrome_finder_spec.rb
|
245
|
-
- spec/webdrivers/
|
246
|
-
- spec/webdrivers/
|
247
|
-
- spec/webdrivers/
|
271
|
+
- spec/webdrivers/coverage/assets/0.10.2/application.css
|
272
|
+
- spec/webdrivers/coverage/assets/0.10.2/application.js
|
273
|
+
- spec/webdrivers/coverage/assets/0.10.2/colorbox/border.png
|
274
|
+
- spec/webdrivers/coverage/assets/0.10.2/colorbox/controls.png
|
275
|
+
- spec/webdrivers/coverage/assets/0.10.2/colorbox/loading.gif
|
276
|
+
- spec/webdrivers/coverage/assets/0.10.2/colorbox/loading_background.png
|
277
|
+
- spec/webdrivers/coverage/assets/0.10.2/favicon_green.png
|
278
|
+
- spec/webdrivers/coverage/assets/0.10.2/favicon_red.png
|
279
|
+
- spec/webdrivers/coverage/assets/0.10.2/favicon_yellow.png
|
280
|
+
- spec/webdrivers/coverage/assets/0.10.2/loading.gif
|
281
|
+
- spec/webdrivers/coverage/assets/0.10.2/magnify.png
|
282
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
|
283
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
|
284
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
|
285
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
|
286
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png
|
287
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
|
288
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
|
289
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
|
290
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png
|
291
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png
|
292
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png
|
293
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png
|
294
|
+
- spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png
|
295
|
+
- spec/webdrivers/coverage/index.html
|
248
296
|
- spec/webdrivers/edgedriver_spec.rb
|
249
|
-
- spec/webdrivers/
|
297
|
+
- spec/webdrivers/edge_finder_spec.rb
|
250
298
|
- spec/webdrivers/geckodriver_spec.rb
|
251
|
-
- spec/webdrivers/
|
299
|
+
- spec/webdrivers/i_edriver_spec.rb
|
300
|
+
- spec/webdrivers/system_spec.rb
|
301
|
+
- spec/webdrivers/webdrivers_spec.rb
|
252
302
|
- spec/webdrivers_proxy_support_spec.rb
|