关于Selenium启动Chrome浏览器闪退问题

两行代码有时候并不能解决问题

option=webdriver.ChromeOptions()
option.add_experimental_option(“detach”,True)

闪退的原因在保证webdriver版本和浏览器版本一致时,selenium版本有问题。

1.卸载当前selenium

 

 2.安装selenium4.1.1版本,完美解决

 

posted @ 2023-03-05 12:33  Accwiz  阅读(1681)  评论(0编辑  收藏  举报