Merge pull request #352 from Thilas/fix-web-driver

Fix SeleniumWebDrivers error
This commit is contained in:
Alejandro Pauly
2020-02-03 09:22:25 -05:00
committed by GitHub

View File

@@ -17,7 +17,7 @@ catch {
Expand-Archive -Path $DriversZipFile -DestinationPath $DestinationPath -Force;
Remove-Item $DriversZipFile;
$ChromeDriverPath = "$DestinationPath\SeleniumWebDrivers\ChromeDriver";
$ChromeDriverPath = "${DestinationPath}SeleniumWebDrivers\ChromeDriver";
Write-Host "Chrome driver path: [$ChromeDriverPath]";
Remove-Item -Path "$ChromeDriverPath\*" -Force;
@@ -48,7 +48,7 @@ Remove-Item -Path "$ChromeDriverPath\chromedriver_win32.zip" -Force;
# Install Microsoft Edge Web Driver
Write-Host "Microsoft Edge driver download...."
$EdgeDriverPath = "$DestinationPath\SeleniumWebDrivers\EdgeDriver"
$EdgeDriverPath = "${DestinationPath}SeleniumWebDrivers\EdgeDriver"
if (-not (Test-Path -Path $EdgeDriverPath)) {
New-Item -Path $EdgeDriverPath -ItemType "directory"
}