天天看點

python selenium webdriver啟動chrome浏覽器的方法

不廢話,直接進入主題,本次示範如何啟動chrome,且指定預設的profile

下載下傳chromedriver

位址:http://chromedriver.storage.googleapis.com/index.html?path=2.33/

特别注意:看notes.txt注意版本号一定要比對啊,如果chromedriver版本和你的chrome版本不比對那就可能啟動不了!!!!!

實戰代碼

本文轉自 小強測試幫 51CTO部落格,原文連結:http://blog.51cto.com/xqtesting/1976078,如需轉載請自行聯系原作者