Install prerequisites for Selenium

This commit is contained in:
Manuel Thalmann 2023-07-15 18:24:26 +02:00
parent 7e4b132644
commit 61c066c480

View file

@ -11,6 +11,17 @@ function Invoke-WindowsInstallation([Context] $context)
. "$PSScriptRoot/../Scripts/Prerequisites.ps1";
Update-WindowsInstallation $context;
if (-not $context.Get("SoftwarePrerequisitesInstalled")) {
Write-Host "Installing prerequisites for installing software";
Install-Module -AcceptLicense -Force "$module";
Import-Module NuGet;
choco install -y selenium-gecko-driver;
Install-Package -Force Selenium.WebDriver -SkipDependencies;
$context.Set("SoftwarePrerequisitesInstalled", 1);
}
if (-not $context.Get("DriversInstalled")) {
Write-Host "Installing Drivers";