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
data/spec/proxy_support_spec.rb
CHANGED
@@ -1,45 +1,45 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
class FakeDriver < Webdrivers::Common
|
4
|
-
def self.http_object
|
5
|
-
self.http
|
6
|
-
end
|
7
|
-
end
|
8
|
-
|
9
|
-
describe "Support for proxies" do
|
10
|
-
let(:http_object) { FakeDriver.http_object }
|
11
|
-
|
12
|
-
before do
|
13
|
-
Webdrivers.proxy_addr = nil
|
14
|
-
Webdrivers.proxy_port = nil
|
15
|
-
Webdrivers.proxy_user = nil
|
16
|
-
Webdrivers.proxy_pass = nil
|
17
|
-
end
|
18
|
-
|
19
|
-
it 'should allow the proxy values to be set via configuration' do
|
20
|
-
Webdrivers.configure do |config|
|
21
|
-
config.proxy_addr = 'proxy_addr'
|
22
|
-
config.proxy_port = '8888'
|
23
|
-
config.proxy_user = 'proxy_user'
|
24
|
-
config.proxy_pass = 'proxy_pass'
|
25
|
-
end
|
26
|
-
|
27
|
-
expect(Webdrivers.proxy_addr).to eql 'proxy_addr'
|
28
|
-
expect(Webdrivers.proxy_port).to eql '8888'
|
29
|
-
expect(Webdrivers.proxy_user).to eql 'proxy_user'
|
30
|
-
expect(Webdrivers.proxy_pass).to eql 'proxy_pass'
|
31
|
-
end
|
32
|
-
|
33
|
-
it 'should use the Proxy when the proxy_addr is set' do
|
34
|
-
Webdrivers.configure do |config|
|
35
|
-
config.proxy_addr = 'proxy_addr'
|
36
|
-
config.proxy_port = '8080'
|
37
|
-
end
|
38
|
-
|
39
|
-
expect(http_object.instance_variable_get('@is_proxy_class')).to be true
|
40
|
-
end
|
41
|
-
|
42
|
-
it 'should not use the Proxy when proxy is not configured' do
|
43
|
-
expect(http_object.instance_variable_get('@is_proxy_class')).to be false
|
44
|
-
end
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
class FakeDriver < Webdrivers::Common
|
4
|
+
def self.http_object
|
5
|
+
self.http
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "Support for proxies" do
|
10
|
+
let(:http_object) { FakeDriver.http_object }
|
11
|
+
|
12
|
+
before do
|
13
|
+
Webdrivers.proxy_addr = nil
|
14
|
+
Webdrivers.proxy_port = nil
|
15
|
+
Webdrivers.proxy_user = nil
|
16
|
+
Webdrivers.proxy_pass = nil
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'should allow the proxy values to be set via configuration' do
|
20
|
+
Webdrivers.configure do |config|
|
21
|
+
config.proxy_addr = 'proxy_addr'
|
22
|
+
config.proxy_port = '8888'
|
23
|
+
config.proxy_user = 'proxy_user'
|
24
|
+
config.proxy_pass = 'proxy_pass'
|
25
|
+
end
|
26
|
+
|
27
|
+
expect(Webdrivers.proxy_addr).to eql 'proxy_addr'
|
28
|
+
expect(Webdrivers.proxy_port).to eql '8888'
|
29
|
+
expect(Webdrivers.proxy_user).to eql 'proxy_user'
|
30
|
+
expect(Webdrivers.proxy_pass).to eql 'proxy_pass'
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'should use the Proxy when the proxy_addr is set' do
|
34
|
+
Webdrivers.configure do |config|
|
35
|
+
config.proxy_addr = 'proxy_addr'
|
36
|
+
config.proxy_port = '8080'
|
37
|
+
end
|
38
|
+
|
39
|
+
expect(http_object.instance_variable_get('@is_proxy_class')).to be true
|
40
|
+
end
|
41
|
+
|
42
|
+
it 'should not use the Proxy when proxy is not configured' do
|
43
|
+
expect(http_object.instance_variable_get('@is_proxy_class')).to be false
|
44
|
+
end
|
45
45
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require "rspec"
|
2
|
-
require "webdrivers"
|
1
|
+
require "rspec"
|
2
|
+
require "webdrivers"
|
data/webdrivers.gemspec
CHANGED
@@ -1,26 +1,27 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
s.
|
7
|
-
s.
|
8
|
-
s.
|
9
|
-
s.
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
|
14
|
-
|
15
|
-
s.
|
16
|
-
s.
|
17
|
-
s.
|
18
|
-
|
19
|
-
|
20
|
-
s.add_development_dependency
|
21
|
-
|
22
|
-
|
23
|
-
s.add_runtime_dependency
|
24
|
-
s.add_runtime_dependency
|
25
|
-
s.add_runtime_dependency
|
26
|
-
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path('../lib', __dir__)
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = 'webdrivers'
|
7
|
+
s.version = '3.7.0'
|
8
|
+
s.authors = ['Titus Fortner', 'Lakshya Kapoor']
|
9
|
+
s.email = %w[titusfortner@gmail.com kapoorlakshya@gmail.com]
|
10
|
+
s.homepage = 'https://github.com/titusfortner/webdrivers'
|
11
|
+
s.summary = 'Easy download and use of browser drivers.'
|
12
|
+
s.description = 'Run Selenium tests more easily with install and updates for all supported webdrivers.'
|
13
|
+
s.licenses = ['MIT']
|
14
|
+
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
18
|
+
s.require_paths = ['lib']
|
19
|
+
|
20
|
+
s.add_development_dependency 'rake', '~> 10.0'
|
21
|
+
s.add_development_dependency 'rspec', '~> 3.0'
|
22
|
+
|
23
|
+
s.add_runtime_dependency 'net_http_ssl_fix'
|
24
|
+
s.add_runtime_dependency 'nokogiri', '~> 1.6'
|
25
|
+
s.add_runtime_dependency 'rubyzip', '~> 1.0'
|
26
|
+
s.add_runtime_dependency 'selenium-webdriver', '~> 3.0'
|
27
|
+
end
|
metadata
CHANGED
@@ -1,43 +1,44 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webdrivers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Fortner
|
8
|
+
- Lakshya Kapoor
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2019-03-19 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
15
|
+
name: rake
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
18
|
- - "~>"
|
18
19
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
+
version: '10.0'
|
20
21
|
type: :development
|
21
22
|
prerelease: false
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
23
24
|
requirements:
|
24
25
|
- - "~>"
|
25
26
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
+
version: '10.0'
|
27
28
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
29
|
+
name: rspec
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
32
|
- - "~>"
|
32
33
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
34
|
+
version: '3.0'
|
34
35
|
type: :development
|
35
36
|
prerelease: false
|
36
37
|
version_requirements: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
39
|
- - "~>"
|
39
40
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
41
|
+
version: '3.0'
|
41
42
|
- !ruby/object:Gem::Dependency
|
42
43
|
name: net_http_ssl_fix
|
43
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,6 +99,7 @@ description: Run Selenium tests more easily with install and updates for all sup
|
|
98
99
|
webdrivers.
|
99
100
|
email:
|
100
101
|
- titusfortner@gmail.com
|
102
|
+
- kapoorlakshya@gmail.com
|
101
103
|
executables: []
|
102
104
|
extensions: []
|
103
105
|
extra_rdoc_files: []
|
@@ -143,15 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
145
|
- !ruby/object:Gem::Version
|
144
146
|
version: '0'
|
145
147
|
requirements: []
|
146
|
-
|
147
|
-
rubygems_version: 2.5.2.3
|
148
|
+
rubygems_version: 3.0.3
|
148
149
|
signing_key:
|
149
150
|
specification_version: 4
|
150
151
|
summary: Easy download and use of browser drivers.
|
151
|
-
test_files:
|
152
|
-
- spec/chromedriver_spec.rb
|
153
|
-
- spec/geckodriver_spec.rb
|
154
|
-
- spec/iedriver_spec.rb
|
155
|
-
- spec/mswebdriver_spec.rb
|
156
|
-
- spec/proxy_support_spec.rb
|
157
|
-
- spec/spec_helper.rb
|
152
|
+
test_files: []
|