mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Fixes #351
This commit is contained in:
@@ -17,7 +17,7 @@ catch {
|
|||||||
Expand-Archive -Path $DriversZipFile -DestinationPath $DestinationPath -Force;
|
Expand-Archive -Path $DriversZipFile -DestinationPath $DestinationPath -Force;
|
||||||
Remove-Item $DriversZipFile;
|
Remove-Item $DriversZipFile;
|
||||||
|
|
||||||
$ChromeDriverPath = "$DestinationPath\SeleniumWebDrivers\ChromeDriver";
|
$ChromeDriverPath = "${DestinationPath}SeleniumWebDrivers\ChromeDriver";
|
||||||
Write-Host "Chrome driver path: [$ChromeDriverPath]";
|
Write-Host "Chrome driver path: [$ChromeDriverPath]";
|
||||||
Remove-Item -Path "$ChromeDriverPath\*" -Force;
|
Remove-Item -Path "$ChromeDriverPath\*" -Force;
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ Remove-Item -Path "$ChromeDriverPath\chromedriver_win32.zip" -Force;
|
|||||||
|
|
||||||
# Install Microsoft Edge Web Driver
|
# Install Microsoft Edge Web Driver
|
||||||
Write-Host "Microsoft Edge driver download...."
|
Write-Host "Microsoft Edge driver download...."
|
||||||
$EdgeDriverPath = "$DestinationPath\SeleniumWebDrivers\EdgeDriver"
|
$EdgeDriverPath = "${DestinationPath}SeleniumWebDrivers\EdgeDriver"
|
||||||
if (-not (Test-Path -Path $EdgeDriverPath)) {
|
if (-not (Test-Path -Path $EdgeDriverPath)) {
|
||||||
New-Item -Path $EdgeDriverPath -ItemType "directory"
|
New-Item -Path $EdgeDriverPath -ItemType "directory"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user