在使用selenium+phantomjs时,运行总是出现错误信息:

'Service' object has no attribute 'process'

出现该错误的原因是未能找到可执行程序"phantomjs",这时可以这样:

driver = webdriver.PhantomJS('/path/to/phantomjs')

也可以通过重启pycharm来解决ORZ。

相关文章:

  • 2022-02-28
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2021-10-23
  • 2021-04-30
  • 2022-02-20
  • 2021-10-09
相关资源
相似解决方案