Downloads:

39,777

Downloads of v 0.24.0:

8,276

Last Update:

2/3/2019

Package Maintainer(s):

Software Author(s):

  • Mozilla

Tags:

Selenium Gecko Driver

0.24.0 | Updated: 2/3/2019

Downloads:

39,777

Downloads of v 0.24.0:

8,276

Maintainer(s):

Software Author(s):

  • Mozilla

Tags:

Selenium Gecko Driver 0.24.0

All Checks are Passing

2 Passing Test


Verification Testing Passed

Details

Validation Testing Passed

To install Selenium Gecko Driver, run the following command from the command line or from PowerShell:

>

To upgrade Selenium Gecko Driver, run the following command from the command line or from PowerShell:

>

To uninstall Selenium Gecko Driver, run the following command from the command line or from PowerShell:

>

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade selenium-gecko-driver -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade selenium-gecko-driver -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure selenium-gecko-driver installed
  win_chocolatey:
    name: selenium-gecko-driver
    state: present
    version: 0.24.0
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020!


chocolatey_package 'selenium-gecko-driver' do
  action    :install
  version  '0.24.0'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: selenium-gecko-driver,
    Version: 0.24.0,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller selenium-gecko-driver
{
   Name     = 'selenium-gecko-driver'
   Ensure   = 'Present'
   Version  = '0.24.0'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'selenium-gecko-driver':
  provider => 'chocolatey',
  ensure   => '0.24.0',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install selenium-gecko-driver version="0.24.0" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 9/9/2019.

Description

Proxy for using W3C WebDriver-compatible clients to interact with Gecko-based browsers.

This program provides the HTTP API described by the WebDriver protocol (http://w3c.github.io/webdriver/webdriver-spec.html#protocol) to communicate with Gecko browsers, such as Firefox.
It translates calls into the Marionette (https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette) automation protocol by acting as a proxy between the local- and remote ends.

You can consult the change log (https://github.com/mozilla/geckodriver/blob/master/CHANGES.md) for a record of all notable changes to the program.

geckodriver.exe file is located in <Get-ToolsLocation>/selenium directory.

Package Parameters

The following package parameters can be set:

  • /SkipShim - informs that the shim file should not be generated

To pass parameters, use --params "''" (e.g. choco install selenium-gecko-driver [other options] --params="'/SkipShim'").


tools\chocolateyInstall.ps1
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$toolsLocation = Get-ToolsLocation
$seleniumDir = "$toolsLocation\selenium"
$driverPath = "$seleniumDir\geckodriver.exe"

$parameters = Get-PackageParameters

$packageArgs = @{
  packageName    = 'selenium-gecko-driver'
  url            = 'https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-win32.zip'
  checksum       = 'bdc1ac6d2d439422f5a88fb8b92d74133d1371edd2d8792b0d0ba86b995e85494b96f192c163aeb13d6cb9e3bee5cc4ed576b7435c7a65b77c3029ababc50f53'
  checksumType   = 'sha512'
  url64bit       = 'https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-win64.zip'
  checksum64     = 'd1eb5263b70e65fd1dbb1255beb1c877a43facba310aaa451a59bb54c0025101235e0c00d024f58b79645302676ab8c01387e2d884dbf856a904ffa53688f481'
  checksumType64 = 'sha512'
  unzipLocation  = $seleniumDir
}
Install-ChocolateyZipPackage @packageArgs

Uninstall-BinFile -Name 'geckodriver'
If ($parameters['SkipShim'] -ne 'true') {
  Install-BinFile -Name 'geckodriver' -Path $driverPath
}

$menuPrograms = [environment]::GetFolderPath([environment+specialfolder]::Programs)
$shortcutArgs = @{
  shortcutFilePath = "$menuPrograms\Selenium\Selenium Gecko Driver.lnk"
  targetPath       = $driverPath
  iconLocation     = "$toolsDir\icon.ico"
}
Install-ChocolateyShortcut @shortcutArgs
tools\chocolateyUninstall.ps1
$toolsLocation = Get-ToolsLocation
$seleniumDir = "$toolsLocation\selenium"

If (Test-Path -Path $seleniumDir) {
  $driverPath = "$seleniumDir\geckodriver.exe"
  If (Test-Path -Path $driverPath) {
    Remove-Item -Path $driverPath -Force
  }

  $directoryInfo = Get-ChildItem -Path $seleniumDir | Measure-Object
  If ($directoryInfo.count -eq 0) {
    Remove-Item -Path $seleniumDir -Force
  }
}

Uninstall-BinFile -Name 'geckodriver'

$menuPrograms = [environment]::GetFolderPath([environment+specialfolder]::Programs)
$shortcutDir = "$menuPrograms\Selenium"

If (Test-Path -Path $shortcutDir) {
  $shortcutFile = "$shortcutDir\Selenium Gecko Driver.lnk"
  If (Test-Path -Path $shortcutFile) {
    Remove-Item -Path $shortcutFile -Force
  }

  $directoryInfo = Get-ChildItem -Path $shortcutDir | Measure-Object
  If ($directoryInfo.count -eq 0) {
    Remove-Item -Path $shortcutDir -Force
  }
}
tools\icon.ico
 

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
Selenium Gecko Driver 0.23.0 5525 Sunday, October 7, 2018 approved
Selenium Gecko Driver 0.22.0 1028 Monday, September 17, 2018 approved
Selenium Gecko Driver 0.21.0 3010 Tuesday, July 10, 2018 approved
Selenium Gecko Driver 0.20.1.20180630 839 Saturday, June 30, 2018 approved
Selenium Gecko Driver 0.20.1 3906 Sunday, April 8, 2018 approved
Selenium Gecko Driver 0.20.0 1545 Tuesday, March 13, 2018 approved
Selenium Gecko Driver 0.19.1.20171103 7075 Friday, November 3, 2017 approved
Selenium Gecko Driver 0.19.1 420 Wednesday, November 1, 2017 approved
Selenium Gecko Driver 0.19.0 1282 Tuesday, October 17, 2017 approved
Show More

This package has no dependencies.

Discussion for the Selenium Gecko Driver Package

Ground Rules:

  • This discussion is only about Selenium Gecko Driver and the Selenium Gecko Driver package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Selenium Gecko Driver, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus