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