From b1d7a11c25a118776fad968598174bc5a7407085 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov <“shibanov-1997@inbox.ru”> Date: Thu, 13 Feb 2020 11:26:38 +0300 Subject: [PATCH] add GeckoWebDriver path --- images/win/scripts/Installers/Install-Firefox.ps1 | 1 + images/win/scripts/Installers/Validate-SeleniumWebDrivers.ps1 | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/images/win/scripts/Installers/Install-Firefox.ps1 b/images/win/scripts/Installers/Install-Firefox.ps1 index abf234cb5..eb6cea70d 100644 --- a/images/win/scripts/Installers/Install-Firefox.ps1 +++ b/images/win/scripts/Installers/Install-Firefox.ps1 @@ -61,5 +61,6 @@ Remove-Item -Path $DestFile -Force Write-Host "Setting the environment variables" Add-MachinePathItem -PathItem $FireFoxDriverPath +setx GeckoWebDriver "$FirefoxDriverPath" /M; exit 0 \ No newline at end of file diff --git a/images/win/scripts/Installers/Validate-SeleniumWebDrivers.ps1 b/images/win/scripts/Installers/Validate-SeleniumWebDrivers.ps1 index 9a68c72bd..a332e69fe 100644 --- a/images/win/scripts/Installers/Validate-SeleniumWebDrivers.ps1 +++ b/images/win/scripts/Installers/Validate-SeleniumWebDrivers.ps1 @@ -4,9 +4,13 @@ ################################################################################ $IEDriverPath = $env:IEWebDriver +Write-Host "IEDriverPath $IEDriverPath" $GeckoDriverPath = $env:GeckoWebDriver +Write-Host "GeckoDriverPath $GeckoDriverPath" $ChromeDriverPath = $env:ChromeWebDriver +Write-Host "ChromeDriverPath $ChromeDriverPath" $EdgeDriverPath = $env:EdgeWebDriver +Write-Host "EdgeDriverPath $EdgeDriverPath" if ( ($IEDriverPath -like "C:\SeleniumWebDrivers\IEDriver") -and