webdrivers 3.6.0 → 3.7.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 +5 -5
- data/.gitignore +6 -6
- data/.travis.yml +11 -7
- data/CHANGELOG.md +100 -96
- data/Gemfile +4 -4
- data/LICENSE.txt +22 -22
- data/README.md +76 -76
- data/Rakefile +6 -6
- data/lib/webdrivers.rb +27 -27
- data/lib/webdrivers/chromedriver.rb +91 -48
- data/lib/webdrivers/common.rb +203 -203
- data/lib/webdrivers/geckodriver.rb +43 -43
- data/lib/webdrivers/iedriver.rb +43 -43
- data/lib/webdrivers/logger.rb +109 -109
- data/lib/webdrivers/mswebdriver.rb +57 -57
- data/lib/webdrivers/selenium.rb +29 -29
- data/spec/chromedriver_spec.rb +77 -75
- data/spec/geckodriver_spec.rb +62 -62
- data/spec/iedriver_spec.rb +38 -38
- data/spec/mswebdriver_spec.rb +26 -26
- data/spec/proxy_support_spec.rb +44 -44
- data/spec/spec_helper.rb +2 -2
- data/webdrivers.gemspec +27 -26
- metadata +12 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 234dcf7f2f7e833833b3e8943d2f223f8eec99a280a31765b1e1eb7896e892d9
|
4
|
+
data.tar.gz: fc80bb60c532e6ca7caf2b87a943671a20d0074be32455b1866c1476bcc04aad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef17a229740ee31802abf2fe0a40a8534db9323d8ccc192263790b8892a243295fad8c2095c36d8870ef90ee1486014fffeef3cb06c514a55503352dda16e023
|
7
|
+
data.tar.gz: b7f75184b2ed26a026106420230b6d439b674909c63eea9362214485408f3be7ecdff961912874bb03bc8f310844210bfac39b183083db85834f45d4295f9021
|
data/.gitignore
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
*.gem
|
2
|
-
.bundle
|
3
|
-
Gemfile.lock
|
4
|
-
pkg/*
|
5
|
-
chromedriver.log
|
6
|
-
/.idea/
|
1
|
+
*.gem
|
2
|
+
.bundle
|
3
|
+
Gemfile.lock
|
4
|
+
pkg/*
|
5
|
+
chromedriver.log
|
6
|
+
/.idea/
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,96 +1,100 @@
|
|
1
|
-
### 3.
|
2
|
-
|
3
|
-
*
|
4
|
-
|
5
|
-
### 3.
|
6
|
-
|
7
|
-
*
|
8
|
-
|
9
|
-
### 3.5.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
### 3.5.
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
### 3.
|
18
|
-
|
19
|
-
*
|
20
|
-
|
21
|
-
### 3.4.
|
22
|
-
|
23
|
-
*
|
24
|
-
|
25
|
-
### 3.4.
|
26
|
-
|
27
|
-
*
|
28
|
-
|
29
|
-
### 3.4.
|
30
|
-
|
31
|
-
*
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
*
|
38
|
-
|
39
|
-
### 3.3.
|
40
|
-
|
41
|
-
* Fix
|
42
|
-
|
43
|
-
### 3.3.
|
44
|
-
|
45
|
-
* Fix bug with
|
46
|
-
|
47
|
-
### 3.3.
|
48
|
-
|
49
|
-
*
|
50
|
-
|
51
|
-
### 3.
|
52
|
-
|
53
|
-
*
|
54
|
-
|
55
|
-
### 3.2.
|
56
|
-
|
57
|
-
*
|
58
|
-
|
59
|
-
### 3.2.
|
60
|
-
|
61
|
-
* Fixed bug
|
62
|
-
|
63
|
-
### 3.2.
|
64
|
-
|
65
|
-
* Fixed
|
66
|
-
|
67
|
-
### 3.2.
|
68
|
-
|
69
|
-
*
|
70
|
-
|
71
|
-
### 3.
|
72
|
-
|
73
|
-
* Implemented
|
74
|
-
|
75
|
-
### 3.0
|
76
|
-
|
77
|
-
*
|
78
|
-
|
79
|
-
### 3.0.
|
80
|
-
|
81
|
-
*
|
82
|
-
|
83
|
-
### 3.0.0
|
84
|
-
|
85
|
-
*
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
* Supports
|
91
|
-
|
92
|
-
### 3.0.0.
|
93
|
-
|
94
|
-
*
|
95
|
-
|
96
|
-
|
1
|
+
### 3.7.0 (2019-03-19)
|
2
|
+
|
3
|
+
* `chromedriver` version now matches the installed Chrome version. See [#32](https://github.com/titusfortner/webdrivers/pull/32).
|
4
|
+
|
5
|
+
### 3.6.0 (2018-12-30)
|
6
|
+
|
7
|
+
* Put net_http_ssl_fix inside a toggle since it can cause other issues
|
8
|
+
|
9
|
+
### 3.5.2 (2018-12-16)
|
10
|
+
|
11
|
+
* Use net_http_ssl_fix to address Net::HTTP issues on windows
|
12
|
+
|
13
|
+
### 3.5.1 (2018-12-16)
|
14
|
+
|
15
|
+
### 3.5.0 (2018-12-15)
|
16
|
+
|
17
|
+
### 3.5.0.beta1 (2018-12-15)
|
18
|
+
|
19
|
+
* Allow version to be specified
|
20
|
+
|
21
|
+
### 3.4.3 (2018-10-22)
|
22
|
+
|
23
|
+
* Fix bug with JRuby and geckodriver (thanks twalpole)
|
24
|
+
|
25
|
+
### 3.4.2 (2018-10-15)
|
26
|
+
|
27
|
+
* Use chromedriver latest version
|
28
|
+
|
29
|
+
### 3.4.1 (2018-09-17)
|
30
|
+
|
31
|
+
* Hardcode latest chromedriver version to 2.42 until we figure out chromedriver 70
|
32
|
+
|
33
|
+
### 3.4.0 (2018-09-07)
|
34
|
+
|
35
|
+
* Allow public access to `#install_dir` and `#binary`
|
36
|
+
* Allow user to set the default download directory
|
37
|
+
* Improve version comparisons with use of `Gem::Version`
|
38
|
+
|
39
|
+
### 3.3.3 (2018-08-14)
|
40
|
+
|
41
|
+
* Fix Geckodriver since Github changed its html again
|
42
|
+
|
43
|
+
### 3.3.2 (2018-05-04)
|
44
|
+
|
45
|
+
* Fix bug with IEDriver versioning (Thanks Aleksei Gusev)
|
46
|
+
|
47
|
+
### 3.3.1 (2018-05-04)
|
48
|
+
|
49
|
+
* Fix bug with MSWebdriver to fetch the correct driver instead of latest (Thanks kapoorlakshya)
|
50
|
+
|
51
|
+
### 3.3.0 (2018-04-29)
|
52
|
+
|
53
|
+
* Ensures downloading correct MSWebdriver version (Thanks kapoorlakshya)
|
54
|
+
|
55
|
+
### 3.2.4 (2017-01-04)
|
56
|
+
|
57
|
+
* Improve error message when unable to find the latest driver
|
58
|
+
|
59
|
+
### 3.2.3 (2017-12-12)
|
60
|
+
|
61
|
+
* Fixed bug with finding geckodriver on updated Github release pages
|
62
|
+
|
63
|
+
### 3.2.2 (2017-11-20)
|
64
|
+
|
65
|
+
* Fixed bug in `#untargz_file` (thanks Jake Goulding)
|
66
|
+
|
67
|
+
### 3.2.1 (2017-09-06)
|
68
|
+
|
69
|
+
* Fixed Proxy support so it actually works (thanks Cheezy)
|
70
|
+
|
71
|
+
### 3.2.0 (2017-08-21)
|
72
|
+
|
73
|
+
* Implemented Proxy support
|
74
|
+
|
75
|
+
### 3.1.0 (2017-08-21)
|
76
|
+
|
77
|
+
* Implemented Logging functionality
|
78
|
+
|
79
|
+
### 3.0.1 (2017-08-18)
|
80
|
+
|
81
|
+
* Create ~/.webdrivers directory if doesn't already exist
|
82
|
+
|
83
|
+
### 3.0.0 (2017-08-17)
|
84
|
+
|
85
|
+
* Removes unnecessary downloads
|
86
|
+
|
87
|
+
### 3.0.0.beta3 (2017-08-17)
|
88
|
+
|
89
|
+
* Supports Windows
|
90
|
+
* Supports mswebdriver and iedriver
|
91
|
+
|
92
|
+
### 3.0.0.beta2 (2017-08-16)
|
93
|
+
|
94
|
+
* Supports geckodriver on Mac and Linux
|
95
|
+
|
96
|
+
### 3.0.0.beta1 (2017-08-15)
|
97
|
+
|
98
|
+
* Complete Rewrite of 2.x
|
99
|
+
* Implemented with Monkey Patch not Shims
|
100
|
+
* Supports chromedriver on Mac and Linux
|
data/Gemfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in webdrivers.gemspec
|
4
|
-
gemspec
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in webdrivers.gemspec
|
4
|
+
gemspec
|
data/LICENSE.txt
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
(The MIT License)
|
2
|
-
|
3
|
-
Copyright (c) 2017: Titus Fortner
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
'Software'), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
20
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
21
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
22
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2017: Titus Fortner
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,76 +1,76 @@
|
|
1
|
-
# Webdrivers
|
2
|
-
|
3
|
-
[](https://travis-ci.org/titusfortner/webdrivers)
|
4
|
-
|
5
|
-
Run Selenium tests more easily with automatic installation and updates for all supported webdrivers.
|
6
|
-
|
7
|
-
# Description
|
8
|
-
|
9
|
-
`webdrivers` downloads drivers and directs Selenium to use them.
|
10
|
-
|
11
|
-
Currently supported:
|
12
|
-
* `chromedriver`
|
13
|
-
* `geckodriver`
|
14
|
-
* `IEDriverServer`
|
15
|
-
* `MicrosoftWebDriver`
|
16
|
-
|
17
|
-
Drivers are stored in `~/.webdrivers` directory
|
18
|
-
|
19
|
-
# Usage
|
20
|
-
|
21
|
-
in your Gemfile:
|
22
|
-
|
23
|
-
`gem "webdrivers", "~> 3.0"`
|
24
|
-
|
25
|
-
in your project:
|
26
|
-
|
27
|
-
`require 'webdrivers'`
|
28
|
-
|
29
|
-
If there is a proxy between you and the Internet then you will need to configure
|
30
|
-
the gem to use the proxy. You can do this by calling the `configure` method.
|
31
|
-
|
32
|
-
````ruby
|
33
|
-
Webdrivers.configure do |config|
|
34
|
-
config.proxy_addr = 'myproxy_address.com'
|
35
|
-
config.proxy_port = '8080'
|
36
|
-
config.proxy_user = 'username'
|
37
|
-
config.proxy_pass = 'password'
|
38
|
-
end
|
39
|
-
````
|
40
|
-
|
41
|
-
If you are getting an error like this (especially common on Windows)
|
42
|
-
`SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed`
|
43
|
-
|
44
|
-
add the following to your code:
|
45
|
-
|
46
|
-
````ruby
|
47
|
-
Webdrivers.net_http_ssl_fix
|
48
|
-
````
|
49
|
-
|
50
|
-
**Note when using Microsoft Edge**:
|
51
|
-
|
52
|
-
After updating Microsoft Edge on Windows 10, you will need to delete the existing binary (`%USERPROFILE%/.webdrivers/MicrosoftWebDriver.exe`) to
|
53
|
-
to be able to download the latest version through this gem.
|
54
|
-
|
55
|
-
This is because `MicrosoftWebDriver.exe` is not backwards compatible and it does not have an argument to retrieve
|
56
|
-
the current version. We work around this limitation by querying the current Edge version from the registry and
|
57
|
-
fetching the corresponding binary IF a file does not already exist. If a file does exist, the gem assumes it is the
|
58
|
-
expected version and skips the download process.
|
59
|
-
|
60
|
-
If you continue with the outdated binary, Selenium will throw an error: `unable to connect to MicrosoftWebDriver localhost:17556`.
|
61
|
-
|
62
|
-
# License
|
63
|
-
|
64
|
-
The gem is available as open source under the terms of the [MIT License](
|
65
|
-
see LICENSE.txt for full details and copyright.
|
66
|
-
|
67
|
-
|
68
|
-
# Contributing
|
69
|
-
|
70
|
-
Bug reports and pull requests are welcome [on GitHub](https://github.com/titusfortner/webdrivers).
|
71
|
-
|
72
|
-
|
73
|
-
## Copyright
|
74
|
-
|
75
|
-
Copyright (c) 2017 Titus Fortner
|
76
|
-
See LICENSE for details
|
1
|
+
# Webdrivers
|
2
|
+
|
3
|
+
[](https://travis-ci.org/titusfortner/webdrivers)
|
4
|
+
|
5
|
+
Run Selenium tests more easily with automatic installation and updates for all supported webdrivers.
|
6
|
+
|
7
|
+
# Description
|
8
|
+
|
9
|
+
`webdrivers` downloads drivers and directs Selenium to use them.
|
10
|
+
|
11
|
+
Currently supported:
|
12
|
+
* `chromedriver`
|
13
|
+
* `geckodriver`
|
14
|
+
* `IEDriverServer`
|
15
|
+
* `MicrosoftWebDriver`
|
16
|
+
|
17
|
+
Drivers are stored in `~/.webdrivers` directory
|
18
|
+
|
19
|
+
# Usage
|
20
|
+
|
21
|
+
in your Gemfile:
|
22
|
+
|
23
|
+
`gem "webdrivers", "~> 3.0"`
|
24
|
+
|
25
|
+
in your project:
|
26
|
+
|
27
|
+
`require 'webdrivers'`
|
28
|
+
|
29
|
+
If there is a proxy between you and the Internet then you will need to configure
|
30
|
+
the gem to use the proxy. You can do this by calling the `configure` method.
|
31
|
+
|
32
|
+
````ruby
|
33
|
+
Webdrivers.configure do |config|
|
34
|
+
config.proxy_addr = 'myproxy_address.com'
|
35
|
+
config.proxy_port = '8080'
|
36
|
+
config.proxy_user = 'username'
|
37
|
+
config.proxy_pass = 'password'
|
38
|
+
end
|
39
|
+
````
|
40
|
+
|
41
|
+
If you are getting an error like this (especially common on Windows)
|
42
|
+
`SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed`
|
43
|
+
|
44
|
+
add the following to your code:
|
45
|
+
|
46
|
+
````ruby
|
47
|
+
Webdrivers.net_http_ssl_fix
|
48
|
+
````
|
49
|
+
|
50
|
+
**Note when using Microsoft Edge**:
|
51
|
+
|
52
|
+
After updating Microsoft Edge on Windows 10, you will need to delete the existing binary (`%USERPROFILE%/.webdrivers/MicrosoftWebDriver.exe`) to
|
53
|
+
to be able to download the latest version through this gem.
|
54
|
+
|
55
|
+
This is because `MicrosoftWebDriver.exe` is not backwards compatible and it does not have an argument to retrieve
|
56
|
+
the current version. We work around this limitation by querying the current Edge version from the registry and
|
57
|
+
fetching the corresponding binary IF a file does not already exist. If a file does exist, the gem assumes it is the
|
58
|
+
expected version and skips the download process.
|
59
|
+
|
60
|
+
If you continue with the outdated binary, Selenium will throw an error: `unable to connect to MicrosoftWebDriver localhost:17556`.
|
61
|
+
|
62
|
+
# License
|
63
|
+
|
64
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT),
|
65
|
+
see LICENSE.txt for full details and copyright.
|
66
|
+
|
67
|
+
|
68
|
+
# Contributing
|
69
|
+
|
70
|
+
Bug reports and pull requests are welcome [on GitHub](https://github.com/titusfortner/webdrivers).
|
71
|
+
|
72
|
+
|
73
|
+
## Copyright
|
74
|
+
|
75
|
+
Copyright (c) 2017 Titus Fortner
|
76
|
+
See LICENSE for details
|