WebDriver多用來執行自動化測試,可以通過java文件或者其他方式在測試的時候打開,Firefox的自帶了WebDriver,但是Chrome沒有,需要手動安裝
chrome://version/
來查看一般默認的安裝目錄是 C:/PRogram Files (x86)/Google/Chrome
即將chromedriver.exe
文件復制到C:/Program Files (x86)/Google/Chrome/application
下將WebDriver的路徑復制到系統環境變量PATH中 即將C:/Program Files (x86)/Google/Chrome/Application/chromedriver.exe
添加到PATH中這樣就完成了Chrome WebDriver的配置
新聞熱點
疑難解答