webdrivers 4.2.0 → 4.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +38 -0
- data/LICENSE.txt +0 -0
- data/README.md +24 -5
- data/lib/webdrivers.rb +0 -0
- data/lib/webdrivers/Rakefile +0 -0
- data/lib/webdrivers/chrome_finder.rb +33 -1
- data/lib/webdrivers/chromedriver.rb +62 -21
- data/lib/webdrivers/common.rb +9 -3
- data/lib/webdrivers/edge_finder.rb +13 -1
- data/lib/webdrivers/edgedriver.rb +37 -14
- data/lib/webdrivers/geckodriver.rb +0 -0
- data/lib/webdrivers/iedriver.rb +9 -6
- data/lib/webdrivers/logger.rb +0 -0
- data/lib/webdrivers/network.rb +2 -0
- data/lib/webdrivers/railtie.rb +0 -0
- data/lib/webdrivers/system.rb +29 -0
- data/lib/webdrivers/tasks/chromedriver.rake +0 -0
- data/lib/webdrivers/tasks/edgedriver.rake +0 -0
- data/lib/webdrivers/tasks/geckodriver.rake +0 -0
- data/lib/webdrivers/tasks/iedriver.rake +0 -0
- data/lib/webdrivers/version.rb +1 -1
- data/spec/spec_helper.rb +0 -0
- data/spec/webdrivers/chrome_finder_spec.rb +53 -0
- data/spec/webdrivers/chromedriver_spec.rb +14 -9
- data/spec/webdrivers/coverage/assets/0.10.2/application.css +799 -0
- data/spec/webdrivers/coverage/assets/0.10.2/application.js +1707 -0
- data/spec/webdrivers/coverage/assets/0.10.2/colorbox/border.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/colorbox/controls.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/colorbox/loading.gif +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/colorbox/loading_background.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/favicon_green.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/favicon_red.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/favicon_yellow.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/loading.gif +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/magnify.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/spec/webdrivers/coverage/index.html +3512 -0
- data/spec/webdrivers/edge_finder_spec.rb +0 -0
- data/spec/webdrivers/edgedriver_spec.rb +16 -12
- data/spec/webdrivers/geckodriver_spec.rb +2 -1
- data/spec/webdrivers/i_edriver_spec.rb +2 -1
- data/spec/webdrivers/system_spec.rb +79 -0
- data/spec/webdrivers/webdrivers_spec.rb +0 -0
- data/spec/webdrivers_proxy_support_spec.rb +0 -0
- metadata +76 -45
- data/.github/ISSUE_TEMPLATE.md +0 -16
- data/.gitignore +0 -8
- data/.rubocop.yml +0 -47
- data/.travis.yml +0 -41
- data/Gemfile +0 -6
- data/Rakefile +0 -11
- data/appveyor.yml +0 -45
- data/gemfiles/Gemfile.edge +0 -7
- data/support/install_jruby.ps1 +0 -7
- data/support/install_msedge.ps1 +0 -11
- data/webdrivers.gemspec +0 -35
data/.travis.yml
DELETED
@@ -1,41 +0,0 @@
|
|
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
|
-
before_install:
|
11
|
-
- gem update --system
|
12
|
-
- gem update bundler
|
13
|
-
matrix:
|
14
|
-
include:
|
15
|
-
- rvm: 2.6.3
|
16
|
-
env: RAKE_TASK=spec
|
17
|
-
- rvm: 2.5.5
|
18
|
-
env: RAKE_TASK=spec
|
19
|
-
- rvm: 2.4.6
|
20
|
-
env: RAKE_TASK=spec
|
21
|
-
- rvm: 2.4.6
|
22
|
-
os: osx
|
23
|
-
env: RAKE_TASK=spec
|
24
|
-
- rvm: 2.4.6
|
25
|
-
env: RAKE_TASK=rubocop
|
26
|
-
- rvm: jruby-9.2.9.0
|
27
|
-
jdk: openjdk8
|
28
|
-
env: RAKE_TASK=spec
|
29
|
-
- rvm: 2.7
|
30
|
-
env: RAKE_TASK=spec
|
31
|
-
gemfile: gemfiles/Gemfile.edge
|
32
|
-
os: osx
|
33
|
-
osx_image: xcode11.3
|
34
|
-
addons:
|
35
|
-
chrome: stable
|
36
|
-
homebrew:
|
37
|
-
taps: homebrew/cask-versions
|
38
|
-
casks:
|
39
|
-
- microsoft-edge-beta
|
40
|
-
allow_failures:
|
41
|
-
- gemfile: gemfiles/Gemfile.edge
|
data/Gemfile
DELETED
data/Rakefile
DELETED
data/appveyor.yml
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
build: off
|
2
|
-
cache:
|
3
|
-
- vendor/bundle
|
4
|
-
image:
|
5
|
-
- Visual Studio 2017
|
6
|
-
environment:
|
7
|
-
matrix:
|
8
|
-
- RUBY_VERSION: Ruby24
|
9
|
-
RUBY_BIN: ruby
|
10
|
-
RAKE_TASK: spec
|
11
|
-
SCRIPT_CONTEXT: bundle exec
|
12
|
-
- RUBY_VERSION: Ruby24
|
13
|
-
RUBY_BIN: ruby
|
14
|
-
RAKE_TASK: rubocop
|
15
|
-
SCRIPT_CONTEXT: bundle exec
|
16
|
-
- RUBY_VERSION: Ruby25
|
17
|
-
RUBY_BIN: ruby
|
18
|
-
RAKE_TASK: spec
|
19
|
-
SCRIPT_CONTEXT: bundle exec
|
20
|
-
- RUBY_VERSION: Ruby26
|
21
|
-
RUBY_BIN: ruby
|
22
|
-
RAKE_TASK: spec
|
23
|
-
SCRIPT_CONTEXT: bundle exec
|
24
|
-
- RUBY_VERSION: jruby-9.2.9.0
|
25
|
-
RUBY_BIN: jruby
|
26
|
-
RAKE_TASK: spec
|
27
|
-
SCRIPT_CONTEXT: jruby -G -S
|
28
|
-
- RUBY_VERSION: Ruby26
|
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'
|
38
|
-
- '%RUBY_BIN% -S gem install bundler'
|
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/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.9.0/jruby-dist-9.2.9.0-bin.zip"
|
2
|
-
$zipPath = "c:\jruby-dist-9.2.9.0-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
|
-
$downloadBetaLink = "https://go.microsoft.com/fwlink/?linkid=2069324&Channel=Dev&language=en-us&Consent=0&IID=85213fc4-6a13-57ae-9082-72910982ede8"
|
2
|
-
$betaSetup = "C:\MicrosoftEdgeSetupBeta.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 (Beta)..." -ForegroundColor cyan
|
8
|
-
Invoke-WebRequest $downloadBetaLink -OutFile $betaSetup
|
9
|
-
Write-Host "Installing..." -ForegroundColor cyan
|
10
|
-
Start-Process $betaSetup
|
11
|
-
Write-Host "Microsoft Edge (Beta) installed.`n" -ForegroundColor green
|
data/webdrivers.gemspec
DELETED
@@ -1,35 +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.authors = ['Titus Fortner', 'Lakshya Kapoor', 'Thomas Walpole']
|
11
|
-
s.email = %w[titusfortner@gmail.com kapoorlakshya@gmail.com]
|
12
|
-
s.homepage = 'https://github.com/titusfortner/webdrivers'
|
13
|
-
s.summary = 'Easy download and use of browser drivers.'
|
14
|
-
s.description = 'Run Selenium tests more easily with install and updates for all supported webdrivers.'
|
15
|
-
s.licenses = ['MIT']
|
16
|
-
|
17
|
-
s.files = `git ls-files`.split("\n")
|
18
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
20
|
-
s.require_paths = ['lib']
|
21
|
-
|
22
|
-
s.add_development_dependency 'ffi', '~> 1.0' # For selenium-webdriver on Windows
|
23
|
-
s.add_development_dependency 'irb'
|
24
|
-
s.add_development_dependency 'rake', '~> 12.0'
|
25
|
-
s.add_development_dependency 'reline', '0.0.7' # Required by irb, and newer versions don't work on JRuby
|
26
|
-
s.add_development_dependency 'rspec', '~> 3.0'
|
27
|
-
s.add_development_dependency 'rubocop', '~>0.66'
|
28
|
-
s.add_development_dependency 'rubocop-performance'
|
29
|
-
s.add_development_dependency 'rubocop-rspec', '~>1.32'
|
30
|
-
s.add_development_dependency 'simplecov', '~>0.16'
|
31
|
-
|
32
|
-
s.add_runtime_dependency 'nokogiri', '~> 1.6'
|
33
|
-
s.add_runtime_dependency 'rubyzip', '>= 1.3.0'
|
34
|
-
s.add_runtime_dependency 'selenium-webdriver', '>= 3.0', '< 4.0'
|
35
|
-
end
|