webdrivers 3.9.1 → 3.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/ISSUE_TEMPLATE.md +13 -13
- data/.gitignore +7 -7
- data/.rubocop.yml +44 -44
- data/.travis.yml +24 -24
- data/CHANGELOG.md +137 -133
- data/Gemfile +6 -6
- data/LICENSE.txt +22 -22
- data/README.md +169 -169
- data/Rakefile +11 -11
- data/appveyor.yml +22 -22
- data/lib/webdrivers.rb +6 -6
- data/lib/webdrivers/chromedriver.rb +185 -167
- data/lib/webdrivers/common.rb +191 -157
- data/lib/webdrivers/geckodriver.rb +80 -72
- data/lib/webdrivers/iedriver.rb +70 -62
- data/lib/webdrivers/logger.rb +111 -111
- data/lib/webdrivers/mswebdriver.rb +55 -55
- data/lib/webdrivers/network.rb +61 -58
- data/lib/webdrivers/system.rb +154 -151
- data/spec/spec_helper.rb +18 -18
- data/spec/webdrivers/chromedriver_spec.rb +257 -243
- data/spec/webdrivers/geckodriver_spec.rb +210 -210
- data/spec/webdrivers/i_edriver_spec.rb +192 -192
- data/spec/webdrivers/ms_webdriver_spec.rb +30 -30
- data/spec/webdrivers_proxy_support_spec.rb +53 -53
- data/webdrivers.gemspec +31 -31
- metadata +4 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: eb461cee2246997d332241f961ee6c20cd6946450a18b7fb5e976152f97673ec
|
4
|
+
data.tar.gz: 660a00af7de0c9d33e60fc27f315827274ad061a2930e697f76106fa760624e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e21a529b98a366a5e149b37d3e0fc52670127524555b04e983a04d59aee84e9b0c537875d54599d6b3a3ffc099936d5d8abd230bade810badeede761de48ca74
|
7
|
+
data.tar.gz: bb18992c6236ce0d743971f1d0848e8b4baa9ee6353a1a42024a68eef9a4104ff44befb77e1dafc1f3353fc17cfff2c239d25e14a5fd4515b1ec4650a4ead1ca
|
data/.github/ISSUE_TEMPLATE.md
CHANGED
@@ -1,14 +1,14 @@
|
|
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
|
-
* Operating system / CI Environment:
|
8
|
-
* Browser and version:
|
9
|
-
|
10
|
-
#### Expected Behavior
|
11
|
-
What you expect to happen.
|
12
|
-
|
13
|
-
#### Actual Behavior
|
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
|
+
* Operating system / CI Environment:
|
8
|
+
* Browser and version:
|
9
|
+
|
10
|
+
#### Expected Behavior
|
11
|
+
What you expect to happen.
|
12
|
+
|
13
|
+
#### Actual Behavior
|
14
14
|
What is actually happening: Error message, stack trace, DEBUG log if applicable (set `Webdrivers.logger.level = :DEBUG` after you require webdrivers)
|
data/.gitignore
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
*.gem
|
2
|
-
.bundle
|
3
|
-
Gemfile.lock
|
4
|
-
pkg/*
|
5
|
-
chromedriver.log
|
6
|
-
/.idea/
|
7
|
-
coverage/
|
1
|
+
*.gem
|
2
|
+
.bundle
|
3
|
+
Gemfile.lock
|
4
|
+
pkg/*
|
5
|
+
chromedriver.log
|
6
|
+
/.idea/
|
7
|
+
coverage/
|
data/.rubocop.yml
CHANGED
@@ -1,44 +1,44 @@
|
|
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
|
-
|
26
|
-
Metrics/ClassLength:
|
27
|
-
Max: 116
|
28
|
-
|
29
|
-
Metrics/CyclomaticComplexity:
|
30
|
-
Max: 8
|
31
|
-
|
32
|
-
Metrics/AbcSize:
|
33
|
-
Max: 16
|
34
|
-
Exclude:
|
35
|
-
- 'lib/webdrivers/chromedriver.rb'
|
36
|
-
|
37
|
-
Style/Documentation:
|
38
|
-
Enabled: false
|
39
|
-
|
40
|
-
RSpec/ExampleLength:
|
41
|
-
Enabled: false
|
42
|
-
|
43
|
-
RSpec/MultipleExpectations:
|
44
|
-
Enabled: false
|
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
|
+
|
26
|
+
Metrics/ClassLength:
|
27
|
+
Max: 116
|
28
|
+
|
29
|
+
Metrics/CyclomaticComplexity:
|
30
|
+
Max: 8
|
31
|
+
|
32
|
+
Metrics/AbcSize:
|
33
|
+
Max: 16
|
34
|
+
Exclude:
|
35
|
+
- 'lib/webdrivers/chromedriver.rb'
|
36
|
+
|
37
|
+
Style/Documentation:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
RSpec/ExampleLength:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
RSpec/MultipleExpectations:
|
44
|
+
Enabled: false
|
data/.travis.yml
CHANGED
@@ -1,24 +1,24 @@
|
|
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
|
-
matrix:
|
11
|
-
include:
|
12
|
-
- rvm: 2.6.3
|
13
|
-
env: RAKE_TASK=spec
|
14
|
-
- rvm: 2.5.5
|
15
|
-
env: RAKE_TASK=spec
|
16
|
-
- rvm: 2.4.6
|
17
|
-
env: RAKE_TASK=spec
|
18
|
-
- rvm: 2.4.6
|
19
|
-
os: osx
|
20
|
-
env: RAKE_TASK=spec
|
21
|
-
- rvm: 2.4.6
|
22
|
-
env: RAKE_TASK=rubocop
|
23
|
-
- rvm: jruby-9.2.7.0
|
24
|
-
env: RAKE_TASK=spec
|
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
|
+
matrix:
|
11
|
+
include:
|
12
|
+
- rvm: 2.6.3
|
13
|
+
env: RAKE_TASK=spec
|
14
|
+
- rvm: 2.5.5
|
15
|
+
env: RAKE_TASK=spec
|
16
|
+
- rvm: 2.4.6
|
17
|
+
env: RAKE_TASK=spec
|
18
|
+
- rvm: 2.4.6
|
19
|
+
os: osx
|
20
|
+
env: RAKE_TASK=spec
|
21
|
+
- rvm: 2.4.6
|
22
|
+
env: RAKE_TASK=rubocop
|
23
|
+
- rvm: jruby-9.2.7.0
|
24
|
+
env: RAKE_TASK=spec
|
data/CHANGELOG.md
CHANGED
@@ -1,133 +1,137 @@
|
|
1
|
-
### 3.9.1 (2019-05-
|
2
|
-
*
|
3
|
-
* Fix bug
|
4
|
-
|
5
|
-
### 3.9.
|
6
|
-
*
|
7
|
-
*
|
8
|
-
|
9
|
-
|
10
|
-
*
|
11
|
-
*
|
12
|
-
*
|
13
|
-
|
14
|
-
|
15
|
-
*
|
16
|
-
*
|
17
|
-
|
18
|
-
|
19
|
-
*
|
20
|
-
|
21
|
-
|
22
|
-
*
|
23
|
-
*
|
24
|
-
|
25
|
-
### 3.
|
26
|
-
*
|
27
|
-
*
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
*
|
32
|
-
*
|
33
|
-
|
34
|
-
### 3.7.
|
35
|
-
|
36
|
-
* `chromedriver`
|
37
|
-
|
38
|
-
### 3.
|
39
|
-
|
40
|
-
*
|
41
|
-
|
42
|
-
### 3.
|
43
|
-
|
44
|
-
*
|
45
|
-
|
46
|
-
### 3.5.
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
### 3.5.
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
### 3.
|
55
|
-
|
56
|
-
*
|
57
|
-
|
58
|
-
### 3.4.
|
59
|
-
|
60
|
-
*
|
61
|
-
|
62
|
-
### 3.4.
|
63
|
-
|
64
|
-
*
|
65
|
-
|
66
|
-
### 3.4.
|
67
|
-
|
68
|
-
*
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
*
|
75
|
-
|
76
|
-
### 3.3.
|
77
|
-
|
78
|
-
* Fix
|
79
|
-
|
80
|
-
### 3.3.
|
81
|
-
|
82
|
-
* Fix bug with
|
83
|
-
|
84
|
-
### 3.3.
|
85
|
-
|
86
|
-
*
|
87
|
-
|
88
|
-
### 3.
|
89
|
-
|
90
|
-
*
|
91
|
-
|
92
|
-
### 3.2.
|
93
|
-
|
94
|
-
*
|
95
|
-
|
96
|
-
### 3.2.
|
97
|
-
|
98
|
-
* Fixed bug
|
99
|
-
|
100
|
-
### 3.2.
|
101
|
-
|
102
|
-
* Fixed
|
103
|
-
|
104
|
-
### 3.2.
|
105
|
-
|
106
|
-
*
|
107
|
-
|
108
|
-
### 3.
|
109
|
-
|
110
|
-
* Implemented
|
111
|
-
|
112
|
-
### 3.0
|
113
|
-
|
114
|
-
*
|
115
|
-
|
116
|
-
### 3.0.
|
117
|
-
|
118
|
-
*
|
119
|
-
|
120
|
-
### 3.0.0
|
121
|
-
|
122
|
-
*
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
* Supports
|
128
|
-
|
129
|
-
### 3.0.0.
|
130
|
-
|
131
|
-
*
|
132
|
-
|
133
|
-
|
1
|
+
### 3.9.1 (2019-05-14)
|
2
|
+
* Allow webdrivers to handle network mocking ([#116](https://github.com/titusfortner/webdrivers/pull/116))
|
3
|
+
* Fix a Windows specific bug when decompressing the driver packages ([#114](https://github.com/titusfortner/webdrivers/pull/114))
|
4
|
+
|
5
|
+
### 3.9.1 (2019-05-09)
|
6
|
+
* Fix bug throwing nil warnings (issue #107)
|
7
|
+
* Fix bug preventing running on older versions of Selenium
|
8
|
+
|
9
|
+
### 3.9.0 (2019-05-07)
|
10
|
+
* Make public methods more obvious and deprecate unnecessary methods (issue #36)
|
11
|
+
* Allow geckodriver binaries to be downloaded directly (issue #30)
|
12
|
+
* Allow drivers to be cached to reduce unnecessary network calls (issue #29)
|
13
|
+
* MSWebdriver class is removed as no longer supported
|
14
|
+
* Refactored to minimize network calls (issue #80)
|
15
|
+
* Fix warnings about instance variables not initialized
|
16
|
+
* Add support for managing specific drivers (issue #95)
|
17
|
+
|
18
|
+
### 3.8.1 (2019-05-04)
|
19
|
+
* Downloads chromedriver with direct URL instead of parsing the downloads page
|
20
|
+
* Raises exception if version of Chrome does not have a known version of the driver (issue #79)
|
21
|
+
* Fixed bug warning of non-initialized variables (issue #62)
|
22
|
+
* Fixed bug with threads/processes colliding by downloading to temp files
|
23
|
+
* Fixed bug for file locking issue on Windows
|
24
|
+
|
25
|
+
### 3.8.0 (2019-04-17)
|
26
|
+
* Add support for `selenium-webdriver` v4. See [#69](https://github.com/titusfortner/webdrivers/pull/69).
|
27
|
+
* Remove dependency on `net_http_ssl_fix` gem. `Webdrivers.net_http_ssl_fix` now raises an exception and points to other solutions. See [#60](https://github.com/titusfortner/webdrivers/pull/60) and [#68](https://github.com/titusfortner/webdrivers/pull/68).
|
28
|
+
|
29
|
+
### 3.7.2 (2019-04-01)
|
30
|
+
* Fix bugs in methods that retrieve Chrome/Chromium version. See [#43](https://github.com/titusfortner/webdrivers/pull/43) and [#52](https://github.com/titusfortner/webdrivers/issues/52).
|
31
|
+
* Add workaround for a Jruby bug when retrieving Chrome version on Windows. See [#41](https://github.com/titusfortner/webdrivers/issues/41).
|
32
|
+
* Update README with more information.
|
33
|
+
|
34
|
+
### 3.7.1 (2019-03-25)
|
35
|
+
* Use `Selenium::WebDriver::Chrome#path` to check for a user given browser executable before defaulting to Google Chrome. Addresses [#38](https://github.com/titusfortner/webdrivers/issues/38).
|
36
|
+
* Download `chromedriver` v2.46 if Chrome/Chromium version is less than 70.
|
37
|
+
|
38
|
+
### 3.7.0 (2019-03-19)
|
39
|
+
|
40
|
+
* `chromedriver` version now matches the installed Chrome version. See [#32](https://github.com/titusfortner/webdrivers/pull/32).
|
41
|
+
|
42
|
+
### 3.6.0 (2018-12-30)
|
43
|
+
|
44
|
+
* Put net_http_ssl_fix inside a toggle since it can cause other issues
|
45
|
+
|
46
|
+
### 3.5.2 (2018-12-16)
|
47
|
+
|
48
|
+
* Use net_http_ssl_fix to address Net::HTTP issues on windows
|
49
|
+
|
50
|
+
### 3.5.1 (2018-12-16)
|
51
|
+
|
52
|
+
### 3.5.0 (2018-12-15)
|
53
|
+
|
54
|
+
### 3.5.0.beta1 (2018-12-15)
|
55
|
+
|
56
|
+
* Allow version to be specified
|
57
|
+
|
58
|
+
### 3.4.3 (2018-10-22)
|
59
|
+
|
60
|
+
* Fix bug with JRuby and geckodriver (thanks twalpole)
|
61
|
+
|
62
|
+
### 3.4.2 (2018-10-15)
|
63
|
+
|
64
|
+
* Use chromedriver latest version
|
65
|
+
|
66
|
+
### 3.4.1 (2018-09-17)
|
67
|
+
|
68
|
+
* Hardcode latest chromedriver version to 2.42 until we figure out chromedriver 70
|
69
|
+
|
70
|
+
### 3.4.0 (2018-09-07)
|
71
|
+
|
72
|
+
* Allow public access to `#install_dir` and `#binary`
|
73
|
+
* Allow user to set the default download directory
|
74
|
+
* Improve version comparisons with use of `Gem::Version`
|
75
|
+
|
76
|
+
### 3.3.3 (2018-08-14)
|
77
|
+
|
78
|
+
* Fix Geckodriver since Github changed its html again
|
79
|
+
|
80
|
+
### 3.3.2 (2018-05-04)
|
81
|
+
|
82
|
+
* Fix bug with IEDriver versioning (Thanks Aleksei Gusev)
|
83
|
+
|
84
|
+
### 3.3.1 (2018-05-04)
|
85
|
+
|
86
|
+
* Fix bug with MSWebdriver to fetch the correct driver instead of latest (Thanks kapoorlakshya)
|
87
|
+
|
88
|
+
### 3.3.0 (2018-04-29)
|
89
|
+
|
90
|
+
* Ensures downloading correct MSWebdriver version (Thanks kapoorlakshya)
|
91
|
+
|
92
|
+
### 3.2.4 (2017-01-04)
|
93
|
+
|
94
|
+
* Improve error message when unable to find the latest driver
|
95
|
+
|
96
|
+
### 3.2.3 (2017-12-12)
|
97
|
+
|
98
|
+
* Fixed bug with finding geckodriver on updated Github release pages
|
99
|
+
|
100
|
+
### 3.2.2 (2017-11-20)
|
101
|
+
|
102
|
+
* Fixed bug in `#untargz_file` (thanks Jake Goulding)
|
103
|
+
|
104
|
+
### 3.2.1 (2017-09-06)
|
105
|
+
|
106
|
+
* Fixed Proxy support so it actually works (thanks Cheezy)
|
107
|
+
|
108
|
+
### 3.2.0 (2017-08-21)
|
109
|
+
|
110
|
+
* Implemented Proxy support
|
111
|
+
|
112
|
+
### 3.1.0 (2017-08-21)
|
113
|
+
|
114
|
+
* Implemented Logging functionality
|
115
|
+
|
116
|
+
### 3.0.1 (2017-08-18)
|
117
|
+
|
118
|
+
* Create ~/.webdrivers directory if doesn't already exist
|
119
|
+
|
120
|
+
### 3.0.0 (2017-08-17)
|
121
|
+
|
122
|
+
* Removes unnecessary downloads
|
123
|
+
|
124
|
+
### 3.0.0.beta3 (2017-08-17)
|
125
|
+
|
126
|
+
* Supports Windows
|
127
|
+
* Supports mswebdriver and iedriver
|
128
|
+
|
129
|
+
### 3.0.0.beta2 (2017-08-16)
|
130
|
+
|
131
|
+
* Supports geckodriver on Mac and Linux
|
132
|
+
|
133
|
+
### 3.0.0.beta1 (2017-08-15)
|
134
|
+
|
135
|
+
* Complete Rewrite of 2.x
|
136
|
+
* Implemented with Monkey Patch not Shims
|
137
|
+
* Supports chromedriver on Mac and Linux
|