其他分享
首页 > 其他分享> > Mac+Jenkins 中 selenium 启动 chromedriver 未显示浏览器的问题

Mac+Jenkins 中 selenium 启动 chromedriver 未显示浏览器的问题

作者:互联网

作为小白,百度了两天全是win+Jenkins,最后一行一行看报错:

selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

最后初始化浏览器直接付上地址,搞定。

self.driver = webdriver.Chrome(executable_path='/usr/local/bin/chromedriver')

标签:executable,浏览器,selenium,一行,chromedriver,Mac,Jenkins
来源: https://www.cnblogs.com/h321/p/15973364.html