Install prerequisites for Selenium
This commit is contained in:
parent
7e4b132644
commit
61c066c480
1 changed files with 11 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue