Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!

Selenium Chrome Driver

2.42

Package test results are passing.

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/17/2018.

WebDriver is an open source tool for automated testing of webapps across many browsers. It provides capabilities for navigating to web pages, user input, JavaScript execution, and more. ChromeDriver is a standalone server which implements WebDriver's wire protocol (https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol) for Chromium.

chromedriver.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-chrome-driver [other options] --params="'/SkipShim'").

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

C:\> choco install selenium-chrome-driver

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

C:\> choco upgrade selenium-chrome-driver

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    $toolsLocation = Get-ToolsLocation
    $seleniumDir = "$toolsLocation\selenium"
    $driverPath = "$seleniumDir\chromedriver.exe"
    
    $parameters = Get-PackageParameters
    
    $packageArgs = @{
      packageName   = 'selenium-chrome-driver'
      url           = 'https://chromedriver.storage.googleapis.com/2.42/chromedriver_win32.zip'
      checksum      = '702da7e8f54749eb5ba7cc9bd570b20830a3900bfc3d4eeed99284e214449b4d4be66faf4c0f09666e593c9fddb2751525938a472fc14e0d08502239f4de92b7'
      checksumType  = 'sha512'
      unzipLocation = $seleniumDir
    }
    Install-ChocolateyZipPackage @packageArgs
    
    Uninstall-BinFile -Name 'chromedriver'
    If ($parameters['SkipShim'] -ne 'true') {
      Install-BinFile -Name 'chromedriver' -Path $driverPath
    }
    
    $menuPrograms = [environment]::GetFolderPath([environment+specialfolder]::Programs)
    $shortcutArgs = @{
      shortcutFilePath = "$menuPrograms\Selenium\Selenium Chrome Driver.lnk"
      targetPath       = $driverPath
      iconLocation     = "$toolsDir\icon.ico"
    }
    Install-ChocolateyShortcut @shortcutArgs
    
  • tools\chocolateyUninstall.ps1 Show
    $toolsLocation = Get-ToolsLocation
    $seleniumDir = "$toolsLocation\selenium"
    
    If (Test-Path -Path $seleniumDir) {
      $driverPath = "$seleniumDir\chromedriver.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 'chromedriver'
    
    $menuPrograms = [environment]::GetFolderPath([environment+specialfolder]::Programs)
    $shortcutDir = "$menuPrograms\Selenium"
    
    If (Test-Path -Path $shortcutDir) {
      $shortcutFile = "$shortcutDir\Selenium Chrome 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

Virus Scan Results

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.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Chromium and WebDriver teams

Copyright

Chromium and WebDriver teams. All Rights Reserved.

Tags

Release Notes

https://sites.google.com/a/chromium.org/chromedriver/downloads

Version History

Version Downloads Last updated Status
Selenium Chrome Driver 2.41 2942 Saturday, July 28, 2018 approved
Selenium Chrome Driver 2.40.20180630 1551 Saturday, June 30, 2018 approved
Selenium Chrome Driver 2.40 1146 Monday, June 11, 2018 approved
Selenium Chrome Driver 2.39 683 Friday, June 1, 2018 approved
Selenium Chrome Driver 2.38 2267 Sunday, April 22, 2018 approved
Selenium Chrome Driver 2.37 2551 Wednesday, March 21, 2018 approved
Selenium Chrome Driver 2.36 787 Tuesday, March 13, 2018 approved
Selenium Chrome Driver 2.35 4716 Friday, January 12, 2018 approved
Selenium Chrome Driver 2.34 2574 Monday, December 11, 2017 approved
Show More

Discussion for the Selenium Chrome Driver Package

Ground rules:

  • This discussion is only about Selenium Chrome Driver and the Selenium Chrome 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 Chrome 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
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok