From 6ff7f00992037377b23fcba0506e780d00221524 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Sun, 14 May 2017 20:32:54 +0200 Subject: [PATCH] Test --- src/ci/scripts/updateSeleniumDrivers.ps1 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ci/scripts/updateSeleniumDrivers.ps1 b/src/ci/scripts/updateSeleniumDrivers.ps1 index f5e9b20c7..81e986cbb 100644 --- a/src/ci/scripts/updateSeleniumDrivers.ps1 +++ b/src/ci/scripts/updateSeleniumDrivers.ps1 @@ -20,10 +20,18 @@ # Powershell script updating Selenium drivers on ci server # # Author: Martin Stockhammer -# Date : 2017-04-30 +# Date : 2017-05-14 # # Description: +$psVersion = $PSVersionTable.PSVersion + +Write-Output "PS-Version: $psVersion" + +param ( + [switch]$Verbose = $False, + [switch]$Force = $False +) $url = "http://selenium-release.storage.googleapis.com/2.53/IEDriverServer_x64_2.53.1.zip" $downloadFile = "C:\jenkins\tools\iedriver\2.53.1\win64\IEDriverServer_x64_2.53.1.zip" @@ -33,7 +41,8 @@ if(!(Test-Path -Path $downloadDir )){ New-Item -ItemType directory -Path $downloadFile } -if (!(Test-Path -Path $downloadFile )){ +if ($Force -Or !(Test-Path -Path $downloadFile )){ Invoke-WebRequest -Uri $url -OutFile $downloadFile + Expand-Archive $downloadFile -DestinationPath $downloadDir } -- 2.39.5