From 61c066c480a8cdabf772e214606636e395ad2403 Mon Sep 17 00:00:00 2001
From: Manuel Thalmann <m@nuth.ch>
Date: Sat, 15 Jul 2023 18:24:26 +0200
Subject: [PATCH] Install prerequisites for Selenium

---
 scripts/Windows/OS/Install.ps1 | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1
index ccf876c0..d3f429c7 100644
--- a/scripts/Windows/OS/Install.ps1
+++ b/scripts/Windows/OS/Install.ps1
@@ -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";