Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chromedriver版本问题 #18

Closed
pkuloaf opened this issue Nov 26, 2021 · 12 comments
Closed

chromedriver版本问题 #18

pkuloaf opened this issue Nov 26, 2021 · 12 comments

Comments

@pkuloaf
Copy link
Contributor

pkuloaf commented Nov 26, 2021

今天运行报错:
This version of ChromeDriver only supports Chrome version 94
Current browser version is 96.0.4664.45 with binary path /usr/bin/google-chrome

已经提交了修改,见#17

@ghost
Copy link

ghost commented Nov 26, 2021

试了试运行正常,太优秀了

@ghost
Copy link

ghost commented Nov 26, 2021

请问这个报错的原因是什么呢,看起来不是selenium的问题。是github更新了运行环境的chrome版本吗?

@pkuloaf
Copy link
Contributor Author

pkuloaf commented Nov 26, 2021

请问这个报错的原因是什么呢,看起来不是selenium的问题。是github更新了运行环境的chrome版本吗?

嗯,应该就是Github Actions的运行环境更新了chrome版本

@James-Harden-13-R
Copy link

请问这个要怎么改呀,把新版本的文件放到原来的文件夹就可以了吗

@ghost
Copy link

ghost commented Nov 26, 2021

请问这个要怎么改呀,把新版本的文件放到原来的文件夹就可以了吗

对。如果不急你也可以等xiazhongyv更新完pull一下。

@James-Harden-13-R
Copy link

请问这个要怎么改呀,把新版本的文件放到原来的文件夹就可以了吗

对。如果不急你也可以等xiazhongyv更新完pull一下。

搞定了!感谢~

@SakuraLaurel
Copy link
Contributor

我不了解google-chrome的更新频率怎么样,网上查了一下好像说6周就会更新一次,是否有必要参考一下这个同学一劳永逸的解决办法呢?Bruuuuuuce/PKUAutoSubmit#40

@xiazhongyv
Copy link
Owner

xiazhongyv commented Nov 26, 2021

ok merge了, 感谢

@youngsteryuan
Copy link

太强啦

@xiazhongyv
Copy link
Owner

我试一下看能不能改成检测并自动下载最新driver,每六周更新一次也太惨了

@xiazhongyv
Copy link
Owner

哈哈哈现在已经不存在chromedriver目录了,改成用webdriver_manager自动下载了!
感谢 @Housyou

@xiazhongyv
Copy link
Owner

笑死,原来环境自带了对应版本的driver,根本不用下载,感谢 @pkuloaf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants