webdrivers 4.1.2 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +64 -0
- data/README.md +36 -11
- data/lib/webdrivers/chrome_finder.rb +34 -2
- data/lib/webdrivers/chromedriver.rb +56 -38
- data/lib/webdrivers/common.rb +17 -16
- data/lib/webdrivers/edge_finder.rb +22 -7
- data/lib/webdrivers/edgedriver.rb +29 -31
- data/lib/webdrivers/geckodriver.rb +1 -22
- data/lib/webdrivers/iedriver.rb +14 -20
- data/lib/webdrivers/logger.rb +2 -93
- data/lib/webdrivers/network.rb +2 -0
- data/lib/webdrivers/system.rb +39 -2
- data/lib/webdrivers/version.rb +1 -1
- data/spec/webdrivers/chrome_finder_spec.rb +53 -0
- data/spec/webdrivers/chromedriver_spec.rb +14 -9
- data/spec/webdrivers/edge_finder_spec.rb +9 -15
- data/spec/webdrivers/edgedriver_spec.rb +20 -22
- data/spec/webdrivers/geckodriver_spec.rb +7 -8
- data/spec/webdrivers/i_edriver_spec.rb +14 -10
- data/spec/webdrivers/system_spec.rb +79 -0
- data/spec/webdrivers/webdrivers_spec.rb +15 -21
- metadata +46 -48
- data/.github/ISSUE_TEMPLATE.md +0 -16
- data/.gitignore +0 -8
- data/.rubocop.yml +0 -47
- data/.travis.yml +0 -41
- data/Gemfile +0 -6
- data/Rakefile +0 -11
- data/appveyor.yml +0 -45
- data/gemfiles/Gemfile.edge +0 -7
- data/support/install_jruby.ps1 +0 -7
- data/support/install_msedge.ps1 +0 -17
- data/webdrivers.gemspec +0 -34
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'spec_helper'
|
|
4
|
+
|
|
5
|
+
describe Webdrivers::System do
|
|
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
|
|
13
|
+
|
|
14
|
+
let(:platform) { 'linux' }
|
|
15
|
+
let(:wsl_proc_version_contents) { '' }
|
|
16
|
+
|
|
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
|
+
end
|
|
23
|
+
|
|
24
|
+
it { is_expected.to eq true }
|
|
25
|
+
end
|
|
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
|
|
33
|
+
|
|
34
|
+
it { is_expected.to eq false }
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
context 'when the current platform is mac' do
|
|
38
|
+
let(:platform) { 'mac' }
|
|
39
|
+
|
|
40
|
+
it { is_expected.to eq false }
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
describe '#to_win32_path' do
|
|
45
|
+
before { allow(described_class).to receive(:call).and_return("C:\\path\\to\\folder\n") }
|
|
46
|
+
|
|
47
|
+
it 'uses wslpath' do
|
|
48
|
+
described_class.to_win32_path '/c/path/to/folder'
|
|
49
|
+
|
|
50
|
+
expect(described_class).to have_received(:call).with('wslpath -w \'/c/path/to/folder\'')
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
it 'removes the trailing newline' do
|
|
54
|
+
expect(described_class.to_win32_path('/c/path/to/folder')).not_to end_with('\n')
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
context 'when the path is already in Windows format' do
|
|
58
|
+
it 'returns early' do
|
|
59
|
+
expect(described_class.to_win32_path('D:\\')).to eq 'D:\\'
|
|
60
|
+
|
|
61
|
+
expect(described_class).not_to have_received(:call)
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe '#to_wsl_path' do
|
|
67
|
+
before { allow(described_class).to receive(:call).and_return("/c/path/to/folder\n") }
|
|
68
|
+
|
|
69
|
+
it 'uses wslpath' do
|
|
70
|
+
described_class.to_wsl_path 'C:\\path\\to\\folder'
|
|
71
|
+
|
|
72
|
+
expect(described_class).to have_received(:call).with('wslpath -u \'C:\\path\\to\\folder\'')
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
it 'removes the trailing newline' do
|
|
76
|
+
expect(described_class.to_wsl_path('/c/path/to/folder')).not_to end_with('\n')
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
@@ -49,37 +49,31 @@ describe Webdrivers do
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
it 'uses provided value' do
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
described_class.install_dir = install_dir
|
|
52
|
+
install_dir = File.expand_path(File.join(ENV['HOME'], '.webdrivers2'))
|
|
53
|
+
described_class.install_dir = install_dir
|
|
55
54
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
end
|
|
55
|
+
expect(described_class.install_dir).to eq install_dir
|
|
56
|
+
ensure
|
|
57
|
+
described_class.install_dir = nil
|
|
60
58
|
end
|
|
61
59
|
|
|
62
60
|
context 'when ENV variable WD_INSTALL_DIR is set and Webdrivers.install_dir is not' do
|
|
63
61
|
it 'uses path from the ENV variable' do
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
described_class.install_dir = nil
|
|
70
|
-
end
|
|
62
|
+
described_class.install_dir = nil
|
|
63
|
+
allow(ENV).to receive(:[]).with('WD_INSTALL_DIR').and_return('custom_dir')
|
|
64
|
+
expect(described_class.install_dir).to be('custom_dir')
|
|
65
|
+
ensure
|
|
66
|
+
described_class.install_dir = nil
|
|
71
67
|
end
|
|
72
68
|
end
|
|
73
69
|
|
|
74
70
|
context 'when both ENV variable WD_INSTALL_DIR and Webdrivers.install_dir are set' do
|
|
75
71
|
it 'uses path from Webdrivers.install_dir' do
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
described_class.install_dir = nil
|
|
82
|
-
end
|
|
72
|
+
described_class.install_dir = 'my_install_dir_path'
|
|
73
|
+
allow(ENV).to receive(:[]).with('WD_INSTALL_DIR').and_return('my_env_path')
|
|
74
|
+
expect(described_class.install_dir).to be('my_install_dir_path')
|
|
75
|
+
ensure
|
|
76
|
+
described_class.install_dir = nil
|
|
83
77
|
end
|
|
84
78
|
end
|
|
85
79
|
end
|
metadata
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: webdrivers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 5.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Titus Fortner
|
|
8
8
|
- Lakshya Kapoor
|
|
9
9
|
- Thomas Walpole
|
|
10
|
-
autorequire:
|
|
10
|
+
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2021-10-20 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: ffi
|
|
@@ -27,61 +27,61 @@ dependencies:
|
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
28
|
version: '1.0'
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
|
-
name:
|
|
30
|
+
name: rake
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
|
32
32
|
requirements:
|
|
33
|
-
- - "
|
|
33
|
+
- - "~>"
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
|
-
version: '0'
|
|
35
|
+
version: '12.0'
|
|
36
36
|
type: :development
|
|
37
37
|
prerelease: false
|
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
39
39
|
requirements:
|
|
40
|
-
- - "
|
|
40
|
+
- - "~>"
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: '0'
|
|
42
|
+
version: '12.0'
|
|
43
43
|
- !ruby/object:Gem::Dependency
|
|
44
|
-
name:
|
|
44
|
+
name: rspec
|
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
47
|
- - "~>"
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: '
|
|
49
|
+
version: '3.0'
|
|
50
50
|
type: :development
|
|
51
51
|
prerelease: false
|
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
53
53
|
requirements:
|
|
54
54
|
- - "~>"
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: '
|
|
56
|
+
version: '3.0'
|
|
57
57
|
- !ruby/object:Gem::Dependency
|
|
58
|
-
name:
|
|
58
|
+
name: rubocop
|
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
|
60
60
|
requirements:
|
|
61
61
|
- - "~>"
|
|
62
62
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: '
|
|
63
|
+
version: '0.89'
|
|
64
64
|
type: :development
|
|
65
65
|
prerelease: false
|
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
|
67
67
|
requirements:
|
|
68
68
|
- - "~>"
|
|
69
69
|
- !ruby/object:Gem::Version
|
|
70
|
-
version: '
|
|
70
|
+
version: '0.89'
|
|
71
71
|
- !ruby/object:Gem::Dependency
|
|
72
|
-
name: rubocop
|
|
72
|
+
name: rubocop-packaging
|
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
|
74
74
|
requirements:
|
|
75
75
|
- - "~>"
|
|
76
76
|
- !ruby/object:Gem::Version
|
|
77
|
-
version:
|
|
77
|
+
version: 0.5.0
|
|
78
78
|
type: :development
|
|
79
79
|
prerelease: false
|
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
|
81
81
|
requirements:
|
|
82
82
|
- - "~>"
|
|
83
83
|
- !ruby/object:Gem::Version
|
|
84
|
-
version:
|
|
84
|
+
version: 0.5.0
|
|
85
85
|
- !ruby/object:Gem::Dependency
|
|
86
86
|
name: rubocop-performance
|
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -102,14 +102,14 @@ dependencies:
|
|
|
102
102
|
requirements:
|
|
103
103
|
- - "~>"
|
|
104
104
|
- !ruby/object:Gem::Version
|
|
105
|
-
version: '1.
|
|
105
|
+
version: '1.42'
|
|
106
106
|
type: :development
|
|
107
107
|
prerelease: false
|
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
|
109
109
|
requirements:
|
|
110
110
|
- - "~>"
|
|
111
111
|
- !ruby/object:Gem::Version
|
|
112
|
-
version: '1.
|
|
112
|
+
version: '1.42'
|
|
113
113
|
- !ruby/object:Gem::Dependency
|
|
114
114
|
name: simplecov
|
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -142,34 +142,28 @@ dependencies:
|
|
|
142
142
|
name: rubyzip
|
|
143
143
|
requirement: !ruby/object:Gem::Requirement
|
|
144
144
|
requirements:
|
|
145
|
-
- - "
|
|
145
|
+
- - ">="
|
|
146
146
|
- !ruby/object:Gem::Version
|
|
147
|
-
version:
|
|
147
|
+
version: 1.3.0
|
|
148
148
|
type: :runtime
|
|
149
149
|
prerelease: false
|
|
150
150
|
version_requirements: !ruby/object:Gem::Requirement
|
|
151
151
|
requirements:
|
|
152
|
-
- - "
|
|
152
|
+
- - ">="
|
|
153
153
|
- !ruby/object:Gem::Version
|
|
154
|
-
version:
|
|
154
|
+
version: 1.3.0
|
|
155
155
|
- !ruby/object:Gem::Dependency
|
|
156
156
|
name: selenium-webdriver
|
|
157
157
|
requirement: !ruby/object:Gem::Requirement
|
|
158
158
|
requirements:
|
|
159
|
-
- - "
|
|
160
|
-
- !ruby/object:Gem::Version
|
|
161
|
-
version: '3.0'
|
|
162
|
-
- - "<"
|
|
159
|
+
- - "~>"
|
|
163
160
|
- !ruby/object:Gem::Version
|
|
164
161
|
version: '4.0'
|
|
165
162
|
type: :runtime
|
|
166
163
|
prerelease: false
|
|
167
164
|
version_requirements: !ruby/object:Gem::Requirement
|
|
168
165
|
requirements:
|
|
169
|
-
- - "
|
|
170
|
-
- !ruby/object:Gem::Version
|
|
171
|
-
version: '3.0'
|
|
172
|
-
- - "<"
|
|
166
|
+
- - "~>"
|
|
173
167
|
- !ruby/object:Gem::Version
|
|
174
168
|
version: '4.0'
|
|
175
169
|
description: Run Selenium tests more easily with install and updates for all supported
|
|
@@ -181,17 +175,9 @@ executables: []
|
|
|
181
175
|
extensions: []
|
|
182
176
|
extra_rdoc_files: []
|
|
183
177
|
files:
|
|
184
|
-
- ".github/ISSUE_TEMPLATE.md"
|
|
185
|
-
- ".gitignore"
|
|
186
|
-
- ".rubocop.yml"
|
|
187
|
-
- ".travis.yml"
|
|
188
178
|
- CHANGELOG.md
|
|
189
|
-
- Gemfile
|
|
190
179
|
- LICENSE.txt
|
|
191
180
|
- README.md
|
|
192
|
-
- Rakefile
|
|
193
|
-
- appveyor.yml
|
|
194
|
-
- gemfiles/Gemfile.edge
|
|
195
181
|
- lib/webdrivers.rb
|
|
196
182
|
- lib/webdrivers/Rakefile
|
|
197
183
|
- lib/webdrivers/chrome_finder.rb
|
|
@@ -217,16 +203,18 @@ files:
|
|
|
217
203
|
- spec/webdrivers/edgedriver_spec.rb
|
|
218
204
|
- spec/webdrivers/geckodriver_spec.rb
|
|
219
205
|
- spec/webdrivers/i_edriver_spec.rb
|
|
206
|
+
- spec/webdrivers/system_spec.rb
|
|
220
207
|
- spec/webdrivers/webdrivers_spec.rb
|
|
221
208
|
- spec/webdrivers_proxy_support_spec.rb
|
|
222
|
-
- support/install_jruby.ps1
|
|
223
|
-
- support/install_msedge.ps1
|
|
224
|
-
- webdrivers.gemspec
|
|
225
209
|
homepage: https://github.com/titusfortner/webdrivers
|
|
226
210
|
licenses:
|
|
227
211
|
- MIT
|
|
228
|
-
metadata:
|
|
229
|
-
|
|
212
|
+
metadata:
|
|
213
|
+
bug_tracker_uri: https://github.com/titusfortner/webdrivers/issues
|
|
214
|
+
changelog_uri: https://github.com/titusfortner/webdrivers/blob/master/CHANGELOG.md
|
|
215
|
+
documentation_uri: https://www.rubydoc.info/gems/webdrivers/5.0.0
|
|
216
|
+
source_code_uri: https://github.com/titusfortner/webdrivers/tree/v5.0.0
|
|
217
|
+
post_install_message:
|
|
230
218
|
rdoc_options: []
|
|
231
219
|
require_paths:
|
|
232
220
|
- lib
|
|
@@ -234,15 +222,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
234
222
|
requirements:
|
|
235
223
|
- - ">="
|
|
236
224
|
- !ruby/object:Gem::Version
|
|
237
|
-
version:
|
|
225
|
+
version: 2.6.0
|
|
238
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
227
|
requirements:
|
|
240
228
|
- - ">="
|
|
241
229
|
- !ruby/object:Gem::Version
|
|
242
230
|
version: '0'
|
|
243
231
|
requirements: []
|
|
244
|
-
rubygems_version: 3.
|
|
245
|
-
signing_key:
|
|
232
|
+
rubygems_version: 3.2.22
|
|
233
|
+
signing_key:
|
|
246
234
|
specification_version: 4
|
|
247
235
|
summary: Easy download and use of browser drivers.
|
|
248
|
-
test_files:
|
|
236
|
+
test_files:
|
|
237
|
+
- spec/spec_helper.rb
|
|
238
|
+
- spec/webdrivers/chrome_finder_spec.rb
|
|
239
|
+
- spec/webdrivers/chromedriver_spec.rb
|
|
240
|
+
- spec/webdrivers/edge_finder_spec.rb
|
|
241
|
+
- spec/webdrivers/edgedriver_spec.rb
|
|
242
|
+
- spec/webdrivers/geckodriver_spec.rb
|
|
243
|
+
- spec/webdrivers/i_edriver_spec.rb
|
|
244
|
+
- spec/webdrivers/system_spec.rb
|
|
245
|
+
- spec/webdrivers/webdrivers_spec.rb
|
|
246
|
+
- spec/webdrivers_proxy_support_spec.rb
|
data/.github/ISSUE_TEMPLATE.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#### Summary
|
|
2
|
-
Short summary of the bug or feature request.
|
|
3
|
-
|
|
4
|
-
#### Debug Info
|
|
5
|
-
Please provide the following information for bug reports:
|
|
6
|
-
|
|
7
|
-
* Webdrivers version:
|
|
8
|
-
* Ruby version:
|
|
9
|
-
* Operating system / CI Environment:
|
|
10
|
-
* Browser and version:
|
|
11
|
-
|
|
12
|
-
#### Expected Behavior
|
|
13
|
-
What you expect to happen.
|
|
14
|
-
|
|
15
|
-
#### Actual Behavior
|
|
16
|
-
What is actually happening: Error message, stack trace, DEBUG log if applicable (set `Webdrivers.logger.level = :DEBUG` after you require webdrivers)
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
AllCops:
|
|
2
|
-
TargetRubyVersion: 2.4.6
|
|
3
|
-
|
|
4
|
-
require:
|
|
5
|
-
- rubocop-rspec
|
|
6
|
-
- rubocop-performance
|
|
7
|
-
|
|
8
|
-
Layout/SpaceInsideHashLiteralBraces:
|
|
9
|
-
EnforcedStyle: no_space
|
|
10
|
-
|
|
11
|
-
Layout/EndOfLine:
|
|
12
|
-
EnforcedStyle: lf
|
|
13
|
-
|
|
14
|
-
Metrics/LineLength:
|
|
15
|
-
Max: 120
|
|
16
|
-
IgnoredPatterns:
|
|
17
|
-
- '\s+# rubocop:disable'
|
|
18
|
-
|
|
19
|
-
Metrics/MethodLength:
|
|
20
|
-
Max: 20
|
|
21
|
-
|
|
22
|
-
Metrics/BlockLength:
|
|
23
|
-
Exclude:
|
|
24
|
-
- 'spec/**/*'
|
|
25
|
-
- 'lib/webdrivers/tasks/*.rake'
|
|
26
|
-
|
|
27
|
-
Metrics/ClassLength:
|
|
28
|
-
Max: 116
|
|
29
|
-
Exclude:
|
|
30
|
-
- 'lib/webdrivers/system.rb'
|
|
31
|
-
|
|
32
|
-
Metrics/CyclomaticComplexity:
|
|
33
|
-
Max: 8
|
|
34
|
-
|
|
35
|
-
Metrics/AbcSize:
|
|
36
|
-
Max: 16
|
|
37
|
-
Exclude:
|
|
38
|
-
- 'lib/webdrivers/chromedriver.rb'
|
|
39
|
-
|
|
40
|
-
Style/Documentation:
|
|
41
|
-
Enabled: false
|
|
42
|
-
|
|
43
|
-
RSpec/ExampleLength:
|
|
44
|
-
Enabled: false
|
|
45
|
-
|
|
46
|
-
RSpec/MultipleExpectations:
|
|
47
|
-
Enabled: false
|
data/.travis.yml
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
cache: bundler
|
|
3
|
-
addons:
|
|
4
|
-
apt:
|
|
5
|
-
packages:
|
|
6
|
-
- chromium-browser
|
|
7
|
-
- libgconf-2-4
|
|
8
|
-
chrome: stable
|
|
9
|
-
script: bundle exec rake $RAKE_TASK
|
|
10
|
-
before_install:
|
|
11
|
-
- gem update --system
|
|
12
|
-
- gem update bundler
|
|
13
|
-
matrix:
|
|
14
|
-
include:
|
|
15
|
-
- rvm: 2.6.3
|
|
16
|
-
env: RAKE_TASK=spec
|
|
17
|
-
- rvm: 2.5.5
|
|
18
|
-
env: RAKE_TASK=spec
|
|
19
|
-
- rvm: 2.4.6
|
|
20
|
-
env: RAKE_TASK=spec
|
|
21
|
-
- rvm: 2.4.6
|
|
22
|
-
os: osx
|
|
23
|
-
env: RAKE_TASK=spec
|
|
24
|
-
- rvm: 2.4.6
|
|
25
|
-
env: RAKE_TASK=rubocop
|
|
26
|
-
- rvm: jruby-9.2.7.0
|
|
27
|
-
jdk: openjdk8
|
|
28
|
-
env: RAKE_TASK=spec
|
|
29
|
-
- rvm: 2.6
|
|
30
|
-
env: RAKE_TASK=spec
|
|
31
|
-
gemfile: gemfiles/Gemfile.edge
|
|
32
|
-
os: osx
|
|
33
|
-
osx_image: xcode10.2
|
|
34
|
-
addons:
|
|
35
|
-
chrome: stable
|
|
36
|
-
homebrew:
|
|
37
|
-
taps: homebrew/cask-versions
|
|
38
|
-
casks:
|
|
39
|
-
- microsoft-edge-dev
|
|
40
|
-
allow_failures:
|
|
41
|
-
- gemfile: gemfiles/Gemfile.edge
|
data/Gemfile
DELETED
data/Rakefile
DELETED
data/appveyor.yml
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
build: off
|
|
2
|
-
cache:
|
|
3
|
-
- vendor/bundle
|
|
4
|
-
image:
|
|
5
|
-
- Visual Studio 2017
|
|
6
|
-
environment:
|
|
7
|
-
matrix:
|
|
8
|
-
- RUBY_VERSION: Ruby24
|
|
9
|
-
RUBY_BIN: ruby
|
|
10
|
-
RAKE_TASK: spec
|
|
11
|
-
SCRIPT_CONTEXT: bundle exec
|
|
12
|
-
- RUBY_VERSION: Ruby24
|
|
13
|
-
RUBY_BIN: ruby
|
|
14
|
-
RAKE_TASK: rubocop
|
|
15
|
-
SCRIPT_CONTEXT: bundle exec
|
|
16
|
-
- RUBY_VERSION: Ruby25
|
|
17
|
-
RUBY_BIN: ruby
|
|
18
|
-
RAKE_TASK: spec
|
|
19
|
-
SCRIPT_CONTEXT: bundle exec
|
|
20
|
-
- RUBY_VERSION: Ruby26
|
|
21
|
-
RUBY_BIN: ruby
|
|
22
|
-
RAKE_TASK: spec
|
|
23
|
-
SCRIPT_CONTEXT: bundle exec
|
|
24
|
-
- RUBY_VERSION: jruby-9.2.7.0
|
|
25
|
-
RUBY_BIN: jruby
|
|
26
|
-
RAKE_TASK: spec
|
|
27
|
-
SCRIPT_CONTEXT: jruby -G -S
|
|
28
|
-
- RUBY_VERSION: Ruby26
|
|
29
|
-
RUBY_BIN: ruby
|
|
30
|
-
RAKE_TASK: spec
|
|
31
|
-
SCRIPT_CONTEXT: bundle exec
|
|
32
|
-
BUNDLE_GEMFILE: gemfiles/Gemfile.edge
|
|
33
|
-
install:
|
|
34
|
-
- ps: if ($env:RUBY_BIN -eq 'jruby') { support\install_jruby.ps1 }
|
|
35
|
-
- ps: support\install_msedge.ps1
|
|
36
|
-
- set PATH=C:\%RUBY_VERSION%\bin;%PATH%
|
|
37
|
-
- '%RUBY_BIN% -S gem update --system'
|
|
38
|
-
- '%RUBY_BIN% -S gem install bundler'
|
|
39
|
-
- '%RUBY_BIN% -S bundle install'
|
|
40
|
-
before_test:
|
|
41
|
-
- '%RUBY_BIN% -v'
|
|
42
|
-
- '%RUBY_BIN% -S gem -v'
|
|
43
|
-
- '%RUBY_BIN% -S bundle -v'
|
|
44
|
-
test_script:
|
|
45
|
-
- '%SCRIPT_CONTEXT% rake %RAKE_TASK%'
|
data/gemfiles/Gemfile.edge
DELETED
data/support/install_jruby.ps1
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
$downloadLink = "https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.2.7.0/jruby-dist-9.2.7.0-bin.zip"
|
|
2
|
-
$zipPath = "c:\jruby-dist-9.2.7.0-bin.zip"
|
|
3
|
-
|
|
4
|
-
Write-Host "Installing $($env:RUBY_VERSION)" -ForegroundColor cyan
|
|
5
|
-
appveyor DownloadFile "$($downloadLink)" -FileName "$($zipPath)"
|
|
6
|
-
7z x "$($zipPath)" -oc:\ -y # Unzip to c:\
|
|
7
|
-
Write-Host "JRuby installed.`n" -ForegroundColor green
|
data/support/install_msedge.ps1
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
$downloadDevLink = "https://go.microsoft.com/fwlink/?linkid=2069324&Channel=Dev&language=en-us&Consent=0&IID=85213fc4-6a13-57ae-9082-72910982ede8"
|
|
2
|
-
$downloadCanaryLink = "https://go.microsoft.com/fwlink/?linkid=2084706&Channel=Canary&language=en-us&Consent=0&IID=85213fc4-6a13-57ae-9082-72910982ede8"
|
|
3
|
-
$devSetup = "C:\MicrosoftEdgeSetupDev.exe"
|
|
4
|
-
$canarySetup = "C:\MicrosoftEdgeSetupCanary.exe"
|
|
5
|
-
|
|
6
|
-
# Note: We're purposely skipping the -Wait flag in Start-Process.
|
|
7
|
-
# This is because Edge auto-launches after the setup is done and
|
|
8
|
-
# Start-Process continues to indefinitely wait on that process.
|
|
9
|
-
Write-Host "Installing Microsoft Edge (Dev)..." -ForegroundColor cyan
|
|
10
|
-
Invoke-WebRequest $downloadDevLink -OutFile $devSetup # Download Dev
|
|
11
|
-
Start-Process $devSetup # Run installer
|
|
12
|
-
Write-Host "Microsoft Edge (Dev) installed.`n" -ForegroundColor green
|
|
13
|
-
|
|
14
|
-
Write-Host "Installing Microsoft Edge (Canary)..." -ForegroundColor cyan
|
|
15
|
-
Invoke-WebRequest $downloadCanaryLink -OutFile $canarySetup # Download Canary
|
|
16
|
-
Start-Process $canarySetup # Run installer
|
|
17
|
-
Write-Host "Microsoft Edge (Canary) installed.`n" -ForegroundColor green
|
data/webdrivers.gemspec
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
lib = File.expand_path('lib', __dir__)
|
|
4
|
-
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
|
|
5
|
-
require 'webdrivers/version'
|
|
6
|
-
|
|
7
|
-
Gem::Specification.new do |s|
|
|
8
|
-
s.name = 'webdrivers'
|
|
9
|
-
s.version = Webdrivers::VERSION
|
|
10
|
-
s.authors = ['Titus Fortner', 'Lakshya Kapoor', 'Thomas Walpole']
|
|
11
|
-
s.email = %w[titusfortner@gmail.com kapoorlakshya@gmail.com]
|
|
12
|
-
s.homepage = 'https://github.com/titusfortner/webdrivers'
|
|
13
|
-
s.summary = 'Easy download and use of browser drivers.'
|
|
14
|
-
s.description = 'Run Selenium tests more easily with install and updates for all supported webdrivers.'
|
|
15
|
-
s.licenses = ['MIT']
|
|
16
|
-
|
|
17
|
-
s.files = `git ls-files`.split("\n")
|
|
18
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
19
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
|
20
|
-
s.require_paths = ['lib']
|
|
21
|
-
|
|
22
|
-
s.add_development_dependency 'ffi', '~> 1.0' # For selenium-webdriver on Windows
|
|
23
|
-
s.add_development_dependency 'irb'
|
|
24
|
-
s.add_development_dependency 'rake', '~> 12.0'
|
|
25
|
-
s.add_development_dependency 'rspec', '~> 3.0'
|
|
26
|
-
s.add_development_dependency 'rubocop', '~>0.66'
|
|
27
|
-
s.add_development_dependency 'rubocop-performance'
|
|
28
|
-
s.add_development_dependency 'rubocop-rspec', '~>1.32'
|
|
29
|
-
s.add_development_dependency 'simplecov', '~>0.16'
|
|
30
|
-
|
|
31
|
-
s.add_runtime_dependency 'nokogiri', '~> 1.6'
|
|
32
|
-
s.add_runtime_dependency 'rubyzip', '~> 1.0'
|
|
33
|
-
s.add_runtime_dependency 'selenium-webdriver', '>= 3.0', '< 4.0'
|
|
34
|
-
end
|