Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

14

Downloads of v 3.0.1:

14

Last Update:

03 May 2024

Package Maintainer(s):

Software Author(s):

  • Adam Driscoll

Tags:

selenium powershell addon foss cross-platform automation web module testing

Selenium PowerShell Module

  • 1
  • 2
  • 3

3.0.1 | Updated: 03 May 2024

Downloads:

14

Downloads of v 3.0.1:

14

Maintainer(s):

Software Author(s):

  • Adam Driscoll

Selenium PowerShell Module 3.0.1

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged as a Note:

At least one file within this package has greater than 0 detections, but less than 5

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

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

>

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

>

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

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

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


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • 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://community.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. Copy Your Script

choco upgrade selenium.powershell -y --source="'INTERNAL REPO 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.powershell -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Install selenium.powershell
  win_chocolatey:
    name: selenium.powershell
    version: '3.0.1'
    source: INTERNAL REPO URL
    state: present

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


chocolatey_package 'selenium.powershell' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '3.0.1'
end

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


cChocoPackageInstaller selenium.powershell
{
    Name     = "selenium.powershell"
    Version  = "3.0.1"
    Source   = "INTERNAL REPO URL"
}

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


package { 'selenium.powershell':
  ensure   => '3.0.1',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

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


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved by moderator Windos on 18 May 2024.

Description

The Selenium PowerShell module allows you to automate browser interaction using the Selenium API. You can navigate to pages, find elements, click buttons, enter text and even take screenshots.

Features

  • Wraps the C# WebDriver for Selenium
  • Easily execute web-based tests
  • Works well with Pester

Package Parameters

The following package parameters can be set:

  • /core - Installs the module in the AllUsers scope for PowerShell Core
  • /desktop - Installs the module in the AllUsers scope for Windows PowerShell (ie. Desktop Edition)

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

Notes


legal\LICENSE.txt
MIT License

Copyright (c) 2020 Adam Driscoll

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
legal\VERIFICATION.txt
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

The file 'LICENSE.txt' is obtained from <https://github.com/adamdriscoll/selenium-powershell/blob/478369b92437f7bfba14ddc64109ee07ee2ecca2/LICENSE>

The module has been downloaded from <https://www.powershellgallery.com/packages/Selenium>
and zipped into 'selenium.zip'. It can be verified by following these steps:

1. Save the module from the PowerShell Gallery:
  - Save-Module -Name Selenium -Path . -RequiredVersion 3.0.1
2. Get the checksum for each file saved to `Selenium\3.0.1` using one of the following methods:
  - Using powershell function 'Get-FileHash'
  - Use chocolatey utility 'checksum.exe'
3. The checksums should match the following:

  file name: LICENSE
  checksum type: SHA256
  checksum: BAEB4A5B8A2F782E21C9F508EEBC728ADBA739F7B7FB8BA3FF07747A4C9FE296

  file name: README.md
  checksum type: SHA256
  checksum: D7DAE9FDD317D06EC5E33AE032963095DD6D4A0850DCF5939F65784237294A47

  file name: Selenium-Binary-Updater.ps1
  checksum type: SHA256
  checksum: 5EB49321251411333B4FB00E4F3695B5E5F2B8B5B5179E8041AEE32E05F0C12D

  file name: Selenium.psd1
  checksum type: SHA256
  checksum: BDFBD97AD53905E6921AD44C3BFE1790A8DDDF8FA30411877E0CC2C18DB30B2E

  file name: Selenium.psm1
  checksum type: SHA256
  checksum: CA60DD2DAEF1204540C2A35D5849E9F25BADD76328DFD71A33DD4CA16E9F88CF

  file name: SeleniumClasses.ps1
  checksum type: SHA256
  checksum: 884A78F44A0A36FD0F5EA4279E75F976D3A3CBB3C95F2C1203816F3ACD93A66B

  file name: assemblies\chromedriver.exe
  checksum type: SHA256
  checksum: 55C5203DB4D44D96F4124C60E69AE0823F4372EFA4B5416675D9564A83D6AD2C

  file name: assemblies\chromedriver.exe.sha256
  checksum type: SHA256
  checksum: B9ECBDF7B19AD0E4099141514D4DEF7C16334570524D750D12DE57F006317116

  file name: assemblies\geckodriver.exe
  checksum type: SHA256
  checksum: 255C9D3571C86841213F49B26D176A6AD440BE8C720E3C2D9226076ADF4F603D

  file name: assemblies\geckodriver.exe.sha256
  checksum type: SHA256
  checksum: B5A4EF0226B2D98DF9EAC1AD5D2DAAB97B04C2D5D65D7A002CE7ADE56A6DB061

  file name: assemblies\IEDriverServer.exe
  checksum type: SHA256
  checksum: A1E26B0E8CB5F8DB1CD784BAC71BBF540485D81E697293B0B4586E25A31A8187

  file name: assemblies\IEDriverServer.exe.sha256
  checksum type: SHA256
  checksum: E487929ABADCCDC39B295212F6FA49632463C2707FC51A4FD406394E8E5970A3

  file name: assemblies\msedgedriver.exe
  checksum type: SHA256
  checksum: 509FFD6D321EF78C8319E68B89807D2437D8DB1718000FE2BB7ECACB1529730D

  file name: assemblies\msedgedriver.exe.sha256
  checksum type: SHA256
  checksum: EFC53256B6BB3D081BDEC13F8BA8398BA999EC69701CD33EADE3C7D5437FE2A8

  file name: assemblies\WebDriver.dll
  checksum type: SHA256
  checksum: 0EE619B1786CF5971C0F9C6EE1859497AECBA93A4953CF92FEA998E8EEFADF3C

  file name: assemblies\WebDriver.dll.sha256
  checksum type: SHA256
  checksum: 7DAA46C412793A6590E03ED079CED7397C6F63005B3EF9D48F897F1E520FEA70

  file name: assemblies\WebDriver.Support.dll
  checksum type: SHA256
  checksum: B59BA7D0CFFE43E722B13AD737CF596F030788B86B5B557CB479F0B6957CCE8A

  file name: assemblies\WebDriver.Support.dll.sha256
  checksum type: SHA256
  checksum: FE5FAAE2D9AE96394020A7617929DAF3E355D8C656A6CB65F9912CA222D25CD8

  file name: assemblies\linux\chromedriver
  checksum type: SHA256
  checksum: B561EFE1551F9CB45DDE6BBF804CA2BC06359415CDAC1B6B16556B095A55011F

  file name: assemblies\linux\chromedriver.sha256
  checksum type: SHA256
  checksum: EF2B40C71F202B4FC5A81B19FF261FC99A54FB89A7AA3BC9B0FE2D4111CFEFEE

  file name: assemblies\linux\geckodriver
  checksum type: SHA256
  checksum: 6590E3B9D9BF292C8DF50B6DF5BCF8A5191D999F9E48F68AA2055EB5746B2C05

  file name: assemblies\linux\geckodriver.sha256
  checksum type: SHA256
  checksum: F1C6C148105997A73960BEC7498B2BBD3875AB6D1B18004880F99B4BCDC22939

  file name: assemblies\macos\chromedriver
  checksum type: SHA256
  checksum: AD35D47CA5CD075939F7F6638188A56B648663D38A0719AF28B3F004BF95E0DD

  file name: assemblies\macos\chromedriver.sha256
  checksum type: SHA256
  checksum: 6FD1760A76C04219E4B5A9382EBF9CB8200A03A555B5EDCAB5950D78D3807504

  file name: assemblies\macos\geckodriver
  checksum type: SHA256
  checksum: D62C2178377ADDEB1BB860426B2C9B10B68D2EEABF0C521529A4A6A7B1E208C4

  file name: assemblies\macos\geckodriver.sha256
  checksum type: SHA256
  checksum: B2F96FFF2033943087EF6066587D770C78604FF3EC7A29A735E6A30E8C66B418

tools\.skipAutoUninstaller
 
tools\chocolateyInstall.ps1
$ErrorActionPreference = 'Stop'

$toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition

$moduleName = "Selenium"
$moduleVersion = $env:ChocolateyPackageVersion

$sourcePath = Join-Path $toolsDir "$($moduleName).zip"
$savedPaths = Join-Path $ToolsDir 'installedpaths'

$destinationPath = switch ((Get-PackageParameters).Keys) {
  "Core" {
    Join-Path $env:ProgramFiles "PowerShell\Modules"
  }
  "Desktop" {
    Join-Path $env:ProgramFiles "WindowsPowerShell\Modules"
  }
}

# By default, install for Windows PowerShell
if (-not $destinationPath) {
  $destinationPath = Join-Path $env:ProgramFiles "WindowsPowerShell\Modules"
}

$unzipArgs = @{
  FileFullPath = $sourcePath
  PackageName  = $env:ChocolateyPackageName
}

$installedPaths = $destinationPath | ForEach-Object {
  Write-Verbose "Installing '$moduleName' to '$_'"

  # PS > 5 needs to extract to a versioned folder
  $path = if ($PSVersionTable.PSVersion.Major -ge 5 -or $_ -notmatch 'Windows') {
    Join-Path $_ "$($moduleName)\$($moduleVersion)"
  } else {
    Join-Path $_ "$($moduleName)"
  }

  if (-not (Test-Path $path)) {
    $null = New-Item $path -ItemType Directory -Force
  }

  Get-ChocolateyUnzip @unzipArgs -Destination $path
}

# Cleanup the module from the Chocolatey $toolsDir folder
Remove-Item $sourcePath -Force -Recurse

# Store the installed locations, so we can remove them during uninstall
Set-Content $savedPaths -Value $installedPaths
tools\chocolateyUninstall.ps1
$ErrorActionPreference = 'Stop'

$toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition

$moduleName = "Selenium"
$moduleVersion = $env:ChocolateyPackageVersion
$savedPaths = Join-Path $toolsDir 'installedpaths'

$pathsToRemove = if (Test-Path $savedPaths) {
  Get-Content $savedPaths
} elseif ($PSVersionTable.PSVersion.Major -ge 5) {
  Join-Path $env:ProgramFiles "WindowsPowerShell\Modules\$($moduleName)\$($moduleVersion)"
} else {
  Join-Path $env:ProgramFiles "WindowsPowerShell\Modules\$($moduleName)"
}

$pathsToRemove | ForEach-Object {
  Write-Verbose "Removing '$moduleName' from '$_'."
  try {
    # First attempt to remove the DLLs. If they're loaded, then we shouldn't remove the rest of the module.
    Get-ChildItem -Path $_ -Recurse -Include *.dll | Remove-Item -Force
    Remove-Item -Path $_ -Recurse -Force
  }
  catch {
    Write-Warning "We were unable to remove some of the files at $_. This generally means Selenium is currently loaded in a PowerShell session. Please close the PowerShell session it's loaded in and try again."
    throw
  }
}
tools\Selenium.zip
md5: B179E83701905D0A554B5BBB36518646 | sha1: C062A88DD654F04DB82FD958296B495DE2A077A8 | sha256: 6D22FFBCF1B8AC0213A32CA4693EF6EDF7D59F6A6301CCD518972F55AD3C11D7 | sha512: 8C85A64547AB64D63BF8BD07DCC670FC712A897133CA90E2FF65EAD72A95DC2AC998AA871FE6E77DFF71804E24DF7C0077FCEB74308B07FBA09B8E79E5948213

Log in or click on link to see number of positives.

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.

Add to Builder Version Downloads Last Updated Status

This package has no dependencies.

Discussion for the Selenium PowerShell Module Package

Ground Rules:

  • This discussion is only about Selenium PowerShell Module and the Selenium PowerShell Module 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 PowerShell Module, 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