Skip to content

Commit

Permalink
Update maven.yml
Browse files Browse the repository at this point in the history
GraziellePinheiro authored Aug 22, 2024
1 parent f79ba54 commit a22bd7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -27,8 +27,9 @@ jobs:
if (Test-Path "C:\drivers\chocolatey\bin\chromedriver.exe") {
Remove-Item "C:\drivers\chocolatey\bin\chromedriver.exe"
}
# Download and install ChromeDriver
Invoke-WebRequest -Uri https://chromedriver.storage.googleapis.com/127.0.6533.99/chromedriver_win32.zip -OutFile chromedriver_win32.zip
# Download and install the latest ChromeDriver
$chromeDriverVersion = Invoke-RestMethod https://chromedriver.storage.googleapis.com/LATEST_RELEASE
Invoke-WebRequest -Uri "https://chromedriver.storage.googleapis.com/$chromeDriverVersion/chromedriver_win32.zip" -OutFile chromedriver_win32.zip
Expand-Archive -Path chromedriver_win32.zip -DestinationPath C:\drivers\chocolatey\bin
[System.IO.File]::Move('C:\drivers\chocolatey\bin\chromedriver.exe', 'C:\drivers\chocolatey\bin\chromedriver.exe')

0 comments on commit a22bd7f

Please sign in to comment.