webdrivers 4.4.1 → 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 +41 -1
- data/LICENSE.txt +23 -23
- data/README.md +29 -6
- data/lib/webdrivers/chrome_finder.rb +4 -2
- data/lib/webdrivers/chromedriver.rb +28 -30
- data/lib/webdrivers/common.rb +7 -11
- data/lib/webdrivers/edge_finder.rb +17 -6
- 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 +11 -1
- data/lib/webdrivers/version.rb +1 -1
- data/spec/webdrivers/chrome_finder_spec.rb +1 -1
- data/spec/webdrivers/edge_finder_spec.rb +9 -15
- data/spec/webdrivers/edgedriver_spec.rb +4 -10
- data/spec/webdrivers/geckodriver_spec.rb +5 -7
- data/spec/webdrivers/i_edriver_spec.rb +12 -9
- data/spec/webdrivers/system_spec.rb +27 -21
- data/spec/webdrivers/webdrivers_spec.rb +15 -21
- metadata +40 -35
- data/.github/ISSUE_TEMPLATE.md +0 -16
- data/.gitignore +0 -8
- data/.rubocop.yml +0 -96
- data/.travis.yml +0 -41
- data/Gemfile +0 -6
- data/Rakefile +0 -11
- data/appveyor.yml +0 -45
- data/bin/console +0 -15
- data/bin/setup +0 -8
- data/gemfiles/Gemfile.edge +0 -7
- data/support/install_jruby.ps1 +0 -7
- data/support/install_msedge.ps1 +0 -11
- data/webdrivers.gemspec +0 -41
data/appveyor.yml
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
build: off
|
|
2
|
-
cache:
|
|
3
|
-
- vendor/bundle
|
|
4
|
-
image:
|
|
5
|
-
- Visual Studio 2019
|
|
6
|
-
environment:
|
|
7
|
-
matrix:
|
|
8
|
-
- RUBY_VERSION: Ruby24-x64
|
|
9
|
-
RUBY_BIN: ruby
|
|
10
|
-
RAKE_TASK: rubocop
|
|
11
|
-
SCRIPT_CONTEXT: bundle exec
|
|
12
|
-
- RUBY_VERSION: Ruby24-x64
|
|
13
|
-
RUBY_BIN: ruby
|
|
14
|
-
RAKE_TASK: spec
|
|
15
|
-
SCRIPT_CONTEXT: bundle exec
|
|
16
|
-
- RUBY_VERSION: Ruby25-x64
|
|
17
|
-
RUBY_BIN: ruby
|
|
18
|
-
RAKE_TASK: spec
|
|
19
|
-
SCRIPT_CONTEXT: bundle exec
|
|
20
|
-
- RUBY_VERSION: Ruby26-x64
|
|
21
|
-
RUBY_BIN: ruby
|
|
22
|
-
RAKE_TASK: spec
|
|
23
|
-
SCRIPT_CONTEXT: bundle exec
|
|
24
|
-
- RUBY_VERSION: jruby-9.2.11.1
|
|
25
|
-
RUBY_BIN: jruby
|
|
26
|
-
RAKE_TASK: spec
|
|
27
|
-
SCRIPT_CONTEXT: jruby -G -S
|
|
28
|
-
- RUBY_VERSION: Ruby26-x64
|
|
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 -N'
|
|
38
|
-
- '%RUBY_BIN% -S gem install bundler -N'
|
|
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/bin/console
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
require 'bundler/setup'
|
|
5
|
-
require 'webdrivers'
|
|
6
|
-
|
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
9
|
-
|
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
11
|
-
# require "pry"
|
|
12
|
-
# Pry.start
|
|
13
|
-
|
|
14
|
-
require 'irb'
|
|
15
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
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.11.1/jruby-dist-9.2.11.1-bin.zip"
|
|
2
|
-
$zipPath = "c:\jruby-dist-9.2.11.1-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,11 +0,0 @@
|
|
|
1
|
-
$downloadLink = "https://go.microsoft.com/fwlink/?linkid=2108834&Channel=Stable&language=en"
|
|
2
|
-
$installerFile = "C:\MicrosoftEdgeSetup.exe"
|
|
3
|
-
|
|
4
|
-
# Note: We're purposely skipping the -Wait flag in Start-Process.
|
|
5
|
-
# This is because Edge auto-launches after the setup is done and
|
|
6
|
-
# Start-Process continues to indefinitely wait on that process.
|
|
7
|
-
Write-Host "Downloading Microsoft Edge (Stable)..." -ForegroundColor cyan
|
|
8
|
-
Invoke-WebRequest $downloadLink -OutFile $installerFile
|
|
9
|
-
Write-Host "Installing..." -ForegroundColor cyan
|
|
10
|
-
Start-Process $installerFile
|
|
11
|
-
Write-Host "Microsoft Edge (Stable) installed.`n" -ForegroundColor green
|
data/webdrivers.gemspec
DELETED
|
@@ -1,41 +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.required_ruby_version = '>= 2.4.0'
|
|
11
|
-
s.authors = ['Titus Fortner', 'Lakshya Kapoor', 'Thomas Walpole']
|
|
12
|
-
s.email = %w[titusfortner@gmail.com kapoorlakshya@gmail.com]
|
|
13
|
-
s.homepage = 'https://github.com/titusfortner/webdrivers'
|
|
14
|
-
s.summary = 'Easy download and use of browser drivers.'
|
|
15
|
-
s.description = 'Run Selenium tests more easily with install and updates for all supported webdrivers.'
|
|
16
|
-
s.licenses = ['MIT']
|
|
17
|
-
|
|
18
|
-
s.metadata = {
|
|
19
|
-
'bug_tracker_uri' => 'https://github.com/titusfortner/webdrivers/issues',
|
|
20
|
-
'changelog_uri' => 'https://github.com/titusfortner/webdrivers/blob/master/CHANGELOG.md',
|
|
21
|
-
'documentation_uri' => "https://www.rubydoc.info/gems/webdrivers/#{Webdrivers::VERSION}",
|
|
22
|
-
'source_code_uri' => "https://github.com/titusfortner/webdrivers/tree/v#{Webdrivers::VERSION}"
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
s.files = `git ls-files`.split("\n")
|
|
26
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
27
|
-
s.executables = []
|
|
28
|
-
s.require_paths = ['lib']
|
|
29
|
-
|
|
30
|
-
s.add_development_dependency 'ffi', '~> 1.0' # For selenium-webdriver on Windows
|
|
31
|
-
s.add_development_dependency 'rake', '~> 12.0'
|
|
32
|
-
s.add_development_dependency 'rspec', '~> 3.0'
|
|
33
|
-
s.add_development_dependency 'rubocop', '~>0.66'
|
|
34
|
-
s.add_development_dependency 'rubocop-performance'
|
|
35
|
-
s.add_development_dependency 'rubocop-rspec', '~>1.32'
|
|
36
|
-
s.add_development_dependency 'simplecov', '~>0.16'
|
|
37
|
-
|
|
38
|
-
s.add_runtime_dependency 'nokogiri', '~> 1.6'
|
|
39
|
-
s.add_runtime_dependency 'rubyzip', '>= 1.3.0'
|
|
40
|
-
s.add_runtime_dependency 'selenium-webdriver', '>= 3.0', '< 4.0'
|
|
41
|
-
end
|