Add missing package for selenium

This commit is contained in:
Manuel Thalmann 2024-08-07 15:24:56 +02:00
parent 18c72d632e
commit 78bc825663

View file

@ -69,7 +69,7 @@ $null = New-Module {
. "$PSScriptRoot/../Software/winget/Manage.ps1";
continue;
}
if (-not (Test-PSPackage Selenium.WebDriver)) {
Install-Module -AcceptLicense -Force NuGet;
Import-Module NuGet;
@ -77,7 +77,7 @@ $null = New-Module {
continue;
}
Install-ChocoPackage firefox;
Install-ChocoPackage selenium-gecko-driver firefox;
if (-not (& { wsl --status; $?; })) {
wsl --install --no-launch;
@ -122,6 +122,31 @@ $null = New-Module {
$arguments.Add("action", $Action);
}
# Drivers
$null = New-Module {
$driverPath = "$PSScriptRoot/../Drivers";
$mbPath = "$driverPath/ROG Zenith Extreme Alpha";
foreach ($component in (Get-Config "valhalla.hardware.components")) {
switch ($component) {
("ROG Zenith Extreme Alpha") {
. "$mbPath/MarvellEthernet/Manage.ps1" @arguments;
. "$mbPath/IntelWiFi/Manage.ps1" @arguments;
. "$mbPath/AMDChipsetX399/Manage.ps1" @arguments;
. "$driverPath/AMDChipsetX399/Manage.ps1" @arguments;
}
("Predator Z301C") {
. "$driverPath/Predator Z301C/Manage.ps1" @arguments;
}
}
}
if (Get-Config "valhalla.hardware.eyeX") {
. "$driverPath/Tobii EyeX/Manage.ps1" @arguments;
}
};
# Windows Config
. "$PSScriptRoot/../Software/Windows/Manage.ps1" @arguments;