自动化脚本打开谷歌浏览器,最大窗口化:self.driver.maximize_window()
经常会报错:
selenium.common.exceptions.WebDriverException: Message: disconnected:unable to connect to renderer
经过分析发现chrom版本与chromedriver不兼容的问题造成的。
解决方法:
去如下网址下载最下的chromedriver:
https://npm.taobao.org/mirrors/chromedriver/

下载后,放在chrome的这个路劲下:

就ok啦
网友评论