webdrivers 2.3.2 → 4.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/CHANGELOG.md +204 -56
- data/LICENSE.txt +2 -2
- data/README.md +253 -17
- data/lib/webdrivers/Rakefile +6 -0
- data/lib/webdrivers/chrome_finder.rb +127 -0
- data/lib/webdrivers/chromedriver.rb +131 -23
- data/lib/webdrivers/common.rb +145 -70
- data/lib/webdrivers/edge_finder.rb +99 -0
- data/lib/webdrivers/edgedriver.rb +87 -17
- data/lib/webdrivers/geckodriver.rb +46 -25
- data/lib/webdrivers/iedriver.rb +51 -18
- data/lib/webdrivers/logger.rb +111 -0
- data/lib/webdrivers/network.rb +63 -0
- data/lib/webdrivers/railtie.rb +15 -0
- data/lib/webdrivers/system.rb +197 -0
- data/lib/webdrivers/tasks/chromedriver.rake +44 -0
- data/lib/webdrivers/tasks/edgedriver.rake +44 -0
- data/lib/webdrivers/tasks/geckodriver.rake +44 -0
- data/lib/webdrivers/tasks/iedriver.rake +44 -0
- data/lib/webdrivers/version.rb +5 -0
- data/lib/webdrivers.rb +7 -9
- data/spec/spec_helper.rb +18 -2
- data/spec/webdrivers/chrome_finder_spec.rb +103 -0
- data/spec/webdrivers/chromedriver_spec.rb +276 -0
- data/spec/webdrivers/edge_finder_spec.rb +58 -0
- data/spec/webdrivers/edgedriver_spec.rb +279 -0
- data/spec/webdrivers/geckodriver_spec.rb +211 -0
- data/spec/webdrivers/i_edriver_spec.rb +197 -0
- data/spec/webdrivers/system_spec.rb +79 -0
- data/spec/webdrivers/webdrivers_spec.rb +80 -0
- data/spec/webdrivers_proxy_support_spec.rb +53 -0
- metadata +157 -43
- data/.gitignore +0 -6
- data/.travis.yml +0 -3
- data/Gemfile +0 -4
- data/Rakefile +0 -6
- data/bin/IEDriverServer +0 -5
- data/bin/MicrosoftWebDriver +0 -5
- data/bin/chromedriver +0 -5
- data/bin/geckodriver +0 -5
- data/bin/phantomjs +0 -5
- data/lib/webdrivers/phantomjs.rb +0 -40
- data/spec/chromedriver_spec.rb +0 -36
- data/spec/edgedriver_spec.rb +0 -24
- data/spec/geckodriver_spec.rb +0 -36
- data/spec/iedriver_spec.rb +0 -27
- data/spec/phantomjs_spec.rb +0 -36
- data/webdrivers.gemspec +0 -24
data/spec/geckodriver_spec.rb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
describe Webdrivers::Geckodriver do
|
4
|
-
|
5
|
-
let(:geckodriver) { Webdrivers::Geckodriver }
|
6
|
-
|
7
|
-
it 'downloads' do
|
8
|
-
geckodriver.download
|
9
|
-
file = "#{ENV['GEM_HOME']}/bin/geckodriver"
|
10
|
-
expect(File.exist?(file)).to eq true
|
11
|
-
end
|
12
|
-
|
13
|
-
it { expect(geckodriver.newest_version.to_f).to be >= 0.11 }
|
14
|
-
|
15
|
-
it { expect(geckodriver.downloads.size).to be >= 4 }
|
16
|
-
|
17
|
-
context "on a linux platform" do
|
18
|
-
before { allow(geckodriver).to receive(:platform) { "linux32" } }
|
19
|
-
|
20
|
-
it { expect(geckodriver.file_name).to match(/geckodriver$/) }
|
21
|
-
|
22
|
-
it { expect(geckodriver.binary_path).to match '.webdrivers/linux32/geckodriver' }
|
23
|
-
|
24
|
-
it { expect(geckodriver.download_url('0.11.0')).to match("v0.11.0/geckodriver-v0.11.0-linux32.tar.gz") }
|
25
|
-
end
|
26
|
-
|
27
|
-
context "on a windows platform" do
|
28
|
-
before { allow(geckodriver).to receive(:platform) { "win" } }
|
29
|
-
|
30
|
-
it { expect(geckodriver.file_name).to match(/geckodriver\.exe$/) }
|
31
|
-
|
32
|
-
it { expect(geckodriver.binary_path).to match '.webdrivers/win/geckodriver' }
|
33
|
-
|
34
|
-
it { expect(geckodriver.download_url('0.9.0')).to match("v0.9.0/geckodriver-v0.9.0-win64.zip") }
|
35
|
-
end
|
36
|
-
end
|
data/spec/iedriver_spec.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
describe Webdrivers::IEDriver do
|
4
|
-
|
5
|
-
let(:iedriver) { Webdrivers::IEDriver }
|
6
|
-
|
7
|
-
it 'downloads' do
|
8
|
-
iedriver.download
|
9
|
-
file = "#{ENV['GEM_HOME']}/bin/IEDriverServer"
|
10
|
-
expect(File.exist?(file)).to eq true
|
11
|
-
end
|
12
|
-
|
13
|
-
it { expect(iedriver.newest_version.to_f).to be >= 2.25 }
|
14
|
-
|
15
|
-
|
16
|
-
context "on a windows platform" do
|
17
|
-
before { allow(iedriver).to receive(:platform) { "win" } }
|
18
|
-
|
19
|
-
it { expect(iedriver.downloads.size).to be >= 16 }
|
20
|
-
|
21
|
-
it { expect(iedriver.file_name).to match(/IEDriverServer\.exe$/) }
|
22
|
-
|
23
|
-
it { expect(iedriver.binary_path).to match '.webdrivers/win/IEDriverServer.exe' }
|
24
|
-
|
25
|
-
it { expect(iedriver.download_url('2.53')).to match("2.53/IEDriverServer_Win32") }
|
26
|
-
end
|
27
|
-
end
|
data/spec/phantomjs_spec.rb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
describe Webdrivers::PhantomJS do
|
4
|
-
|
5
|
-
let(:phantomjs) { Webdrivers::PhantomJS }
|
6
|
-
|
7
|
-
it 'downloads' do
|
8
|
-
phantomjs.download
|
9
|
-
file = "#{ENV['GEM_HOME']}/bin/phantomjs"
|
10
|
-
expect(File.exist?(file)).to eq true
|
11
|
-
end
|
12
|
-
|
13
|
-
it { expect(phantomjs.newest_version.to_f).to be >= 0.11 }
|
14
|
-
|
15
|
-
it { expect(phantomjs.downloads.size).to be >= 5 }
|
16
|
-
|
17
|
-
context "on a linux platform" do
|
18
|
-
before { allow(phantomjs).to receive(:platform) { "linux32" } }
|
19
|
-
|
20
|
-
it { expect(phantomjs.file_name).to match(/phantomjs$/) }
|
21
|
-
|
22
|
-
it { expect(phantomjs.binary_path).to match '.webdrivers/linux32/phantomjs' }
|
23
|
-
|
24
|
-
it { expect(phantomjs.download_url('1.9.6')).to match("phantomjs-1.9.6-linux-") }
|
25
|
-
end
|
26
|
-
|
27
|
-
context "on a windows platform" do
|
28
|
-
before { allow(phantomjs).to receive(:platform) { "win" } }
|
29
|
-
|
30
|
-
it { expect(phantomjs.file_name).to match(/phantomjs\.exe$/) }
|
31
|
-
|
32
|
-
it { expect(phantomjs.binary_path).to match '.webdrivers/win/phantomjs' }
|
33
|
-
|
34
|
-
it { expect(phantomjs.download_url('1.9.7')).to match("phantomjs-1.9.7-windows.zip") }
|
35
|
-
end
|
36
|
-
end
|
data/webdrivers.gemspec
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
|
4
|
-
Gem::Specification.new do |s|
|
5
|
-
s.name = "webdrivers"
|
6
|
-
s.version = "2.3.2"
|
7
|
-
s.authors = ["Titus Fortner"]
|
8
|
-
s.email = ["titusfortner@gmail.com"]
|
9
|
-
s.homepage = "https://github.com/titusfortner/webdrivers"
|
10
|
-
s.summary = "Easy installation and use of webdrivers."
|
11
|
-
s.description = "Run Selenium tests more easily with install and updates for all supported webdrivers."
|
12
|
-
s.licenses = ["MIT"]
|
13
|
-
|
14
|
-
s.files = `git ls-files`.split("\n")
|
15
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
|
-
s.require_paths = ["lib"]
|
18
|
-
|
19
|
-
s.add_development_dependency "rspec", "~> 3.0"
|
20
|
-
s.add_development_dependency "rake", "~> 10.0"
|
21
|
-
|
22
|
-
s.add_runtime_dependency "nokogiri", "~> 1.6"
|
23
|
-
s.add_runtime_dependency "zip"
|
24
|
-
end
|