天天看点

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,如需转载请自行联系原作者