Skip to content

Commit

Permalink
Chrome Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jayrodksmith authored Mar 20, 2024
1 parent 82588dd commit c9b7116
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Private/Helpers/Get-WebDriver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ function Get-WebDriver {
if ($versionLink.Count -gt 1){
$versionLink = $versionLink[0]
}
if (!$versionLink){
# In case of no matching webdriver download the first result
$versionLink = $chromeDriverAvailableVersions | Select-Object -first 1
}
$downloadLink = $versionLink
try {
Invoke-WebRequest $downloadLink -OutFile "$webDriversPath\chromeNewDriver.zip"
Expand Down

0 comments on commit c9b7116

Please sign in to comment.