使用powershell安装最新的chrome
我在下面的教程中尝试安装它 指挥是使用powershell安装最新的chrome,powershell,selenium,google-chrome,selenium-webdriver,Powershell,Selenium,Google Chrome,Selenium Webdriver,我在下面的教程中尝试安装它 指挥是 $LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', "$LocalTempDir\$ChromeInstaller&
$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound)
但这是给我铬版本89.xx不是最新的。我需要两个ChromeDriver和Chrome浏览器匹配相同
我用来安装ChromeBinary的命令choco安装chromedriver
这给了我chromedriver版本90