selenium版本控制谷歌浏览器在mac上改进
二、是selenium版本的跟新问题,导致原有的语句不能使用。一、下载和Chrome浏览器对应版本的。是可以从这里找到跟新后语句的写法。
·
一、下载和Chrome浏览器对应版本的chromedriver.exe
在python代码调用时,chromedriver需要指定好具体的路径,代码如下:
from selenium import webdriver
options = webdriver.ChromeOptions()
options.binary_location = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
chrome_driver_binary = "/Users/bin/Downloads/chromedriver"
driver = webdriver.Chrome(chrome_driver_binary,chrome_options = options)
二、是selenium版本的跟新问题,导致原有的语句不能使用
selenium版本跟新,使用find_element()命令_JJCY的博客-CSDN博客_selenium升级命令
是可以从这里找到跟新后语句的写法
更多推荐
已为社区贡献1条内容
所有评论(0)