首页 > 其他 > 详细

'Service' object has no attribute 'process'

时间:2017-01-09 16:15:42      阅读:826      评论:0      收藏:0      [点我收藏+]

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

Service object has no attribute process

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

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

也可以重启pycharm来解决ORZ。

'Service' object has no attribute 'process'

原文:http://www.cnblogs.com/xzysaber/p/6265380.html

(2)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!