ITPub博客

首页 > > > 运行selenium文件,出现错误

运行selenium文件,出现错误

作者:ofan 时间:2019-11-12 09:49:17 0 删除 编辑

运行selenium文件,出现错误:selenium.common.exceptions.WebDriverException: Message: invalid argument: can't kill an exited process


1,装的是最新版的Firefox和驱动,但是运行就会出这个错,网上有人说是版本问题,但是我是最新的

Firefox和geckodriver,不应该会出现驱动的浏览器不匹配的问题。

2,geckodriver.log中有XPCOMGlueLoad error for file /Vir/agency_spider/bin/firefox/libmozgtk.so:

libgtk-3.so.0: cannot open shared object file: No such file or directory

Couldn't load XPCOM

但是去yum install libgtk-3.so.0显示没有这个包 ,gtk3也是没有包,就很奇怪,问问各位大佬怎么解决


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4571/viewspace-3132116/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-01

  • 博文量
    159
  • 访问量
    1161