Downloads:

449

Downloads of v 1.0.0:

449

Last Update:

07 Jun 2018

Package Maintainer(s):

Software Author(s):

  • Microsoft Edge

Tags:

edge microsoft webdriver driver web microsoftedgewebdriver microsoftwebdriver

Microsoft WebDriver

1.0.0 | Updated: 07 Jun 2018

Downloads:

449

Downloads of v 1.0.0:

449

Maintainer(s):

Software Author(s):

  • Microsoft Edge

Microsoft WebDriver 1.0.0

This Package Contains an Exempted Check

1 Test Passing and 1 Exempted Test


Validation Testing Passed


Verification Testing Exempt:

Software can only install on Windows 10.

To install Microsoft WebDriver, run the following command from the command line or from PowerShell:

>

To upgrade Microsoft WebDriver, run the following command from the command line or from PowerShell:

>

To uninstall Microsoft WebDriver, run the following command from the command line or from PowerShell:

>

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

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 microsoftwebdriver -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 microsoftwebdriver -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 microsoftwebdriver installed
  win_chocolatey:
    name: microsoftwebdriver
    state: present
    version: 1.0.0
    source: STEP 3 URL

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

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'microsoftwebdriver' do
  action    :install
  version  '1.0.0'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: microsoftwebdriver,
    Version: 1.0.0,
    Source: STEP 3 URL
);

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


cChocoPackageInstaller microsoftwebdriver
{
   Name     = 'microsoftwebdriver'
   Ensure   = 'Present'
   Version  = '1.0.0'
   Source   = 'STEP 3 URL'
}

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


package { 'microsoftwebdriver':
  provider => 'chocolatey',
  ensure   => '1.0.0',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install microsoftwebdriver version="1.0.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.

This package was approved by moderator Pauby on 11 Jun 2018.

Description

While the Microsoft Edge WebDriver downloads are available in https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/, it's
very common to end up using a wrong version. Even more, build after the
Windows 10 April 2018 Update will have WebDriver as a capability of the OS
instead of a separate download file.
This package automatically installs the right version for WebDriver (file or
capability) based on your Windows 10 build number.

`MicrosoftWebDriver.exe` will get added to the following paths:
* `%WINDIR%\System32` if your OS is x86
* `%WINDIR%\SysWOW64` if your OS is x64

In both cases, it will be in the `PATH` so it can be used anywhere.

**Only stable versions of Windows 10 are supported prior build 17134.**

tools\chocolateyinstall.ps1
$osVersion = [System.Environment]::OSVersion.Version
$major = $osVersion.Major
$build = $osVersion.Build

if ($major -ne 10) {
    throw 'Unsupported Windows version.'
}

if ($build -gt 17600) {
    # Starting on RS5, webdriver is a Windows capability
    Write-Host 'Installing WebDriver capability.'
    DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0

    exit
}

if ($build -eq 17682) {
    $checksum = '8210b744879b865f9c0e0d09f6a09689a156cf67c3dfaccf8d56cf2bdc8b97181d544e5a83d8eafa67113f3aa68ca7870df98f9fa0f16ee628b40b411ddef985'
    $url = 'https://download.microsoft.com/download/F/8/A/F8AF50AB-3C3A-4BC4-8773-DC27B32988DD/MicrosoftWebDriver.exe'
} elseif ($build -eq 16299) {
    $checksum = '11eff15b47d417f3831ee1ef78f5d0907f1a29fc5d3fc4dd6fde28bc94369fdf98434e03489398d02fa616c4246e171ba1667f5b164a86df695fea854a852857'
    $url = 'https://download.microsoft.com/download/D/4/1/D417998A-58EE-4EFE-A7CC-39EF9E020768/MicrosoftWebDriver.exe'
} elseif ($build -eq 15063) {
    $checksum = '6bed0966d722fa8b15f14e3b2131de3bc3c07f681b9817d7765eb2fd50e8e22fc024d063aba5e701671f735a121cba833c2b5843f037c65dca1d009bff2462a2'
    $url = 'https://download.microsoft.com/download/3/4/2/342316D7-EBE0-4F10-ABA2-AE8E0CDF36DD/MicrosoftWebDriver.exe'
} elseif ($build -eq 14393) {
    $checksum = 'af81564e0c1d4fc4494a7164fd9cdcd1da925a5b4b26495517b5eef03f5f6708ff4d2decbe6fab2040ebabe5c5d084ca46dbfc4ae1731cc855f19332e6d7c2b8'
    $url = 'https://download.microsoft.com/download/3/2/D/32D3E464-F2EF-490F-841B-05D53C848D15/MicrosoftWebDriver.exe'
} elseif ($build -eq 10586) {
    $checksum = 'a02b9daed04ca254a103071069f4380acdecab50632b7f59e9af5a6372a94a952605dd489e991d20caffce3089ad9c5591edd48a364c69ac11f0d026ad31b72f'
    $url = 'https://download.microsoft.com/download/C/0/7/C07EBF21-5305-4EC8-83B1-A6FCC8F93F45/MicrosoftWebDriver.exe'
} elseif ($build -eq 10240) {
    $checksum = 'f0ad26abef51a571c663a14cc08d0421c3f50b783913c092de883cbe65880a45e061a9f3d200f6c0b301190042414a087e8b917900d7aa8c4e0a824afba46f7c'
    $url = 'https://download.microsoft.com/download/8/D/0/8D0D08CF-790D-4586-B726-C6469A9ED49C/MicrosoftWebDriver.exe'
} else {
  throw "Your Windows 10 build ($build) is not supported by this installer."
}

# Binaries are x86, we need to install them in the right path depending on the OS architecture
if ([Environment]::Is64BitProcess) {
    $childpath = 'SysWOW64'
} else {
    $childpath = 'system32'
}

$destination = Join-Path -path (get-item env:\windir).value -ChildPath $childpath

Get-ChocolateyWebFile -PackageName 'MicrosoftWebDriver' -FileFullPath "$destination\MicrosoftWebDriver.exe" -Url $url -checksum $checksum -checksumType 'sha512'
tools\chocolateyuninstall.ps1
$osVersion = [System.Environment]::OSVersion.Version
$major = $osVersion.Major
$build = $osVersion.Build

if ($major -ne 10) {
  throw 'Unsupported Windows version.'
}

if ($build -gt 17600) {
  # Starting on RS5, webdriver is a Windows capability
  Write-Host 'Uninstalling WebDriver capability.'
  DISM.exe /Online /Remove-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0

  exit
}

# Binaries are x86, we need to uninstall them from the right path depending on the OS architecture
if ([Environment]::Is64BitProcess) {
  $childpath = 'SysWOW64'
} else {
  $childpath = 'system32'
}

$destination = Join-Path -path (get-item env:\windir).value -ChildPath $childpath

Remove-Item -path $destination

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

This package has no dependencies.

Discussion for the Microsoft WebDriver Package

Ground Rules:

  • This discussion is only about Microsoft WebDriver and the Microsoft WebDriver 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 Microsoft WebDriver, 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