steps: - bash: | curl --retry 5 -LO https://github.com/mozilla/geckodriver/releases/download/v0.21.0/geckodriver-v0.21.0-linux64.tar.gz tar xf geckodriver-v0.21.0-linux64.tar.gz echo "##vso[task.setvariable variable=GECKODRIVER;]$PWD/geckodriver" displayName: "Download Geckodriver (Linux)" condition: eq( variables['Agent.OS'], 'Linux' ) - powershell: | Invoke-WebRequest https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-win64.zip -OutFile gecko.zip unzip gecko.zip Write-Host "##vso[task.setvariable variable=GECKODRIVER;]$pwd\geckodriver.exe" displayName: "Download Geckodriver (Windows)" condition: eq( variables['Agent.OS'], 'Windows_NT' )