TA的每日心情 | 开心 2018-7-16 22:18 |
---|
签到天数: 2 天 连续签到: 2 天 [LV.1]测试小兵
|
2#
楼主 |
发表于 2016-5-24 11:04:52
|
只看该作者
掉渣饼 发表于 2016-5-24 09:56
driver=webdriver.PhantomJS(ur"/home/kylinu/下载/phantomjs-1.9.6-linux-x86_64/bin/phantomjs")
把这个 ...
Python 2.7.11+ (default, Apr 17 2016, 14:00:29)
[GCC 5.3.1 20160413] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from selenium import webdriver
>>> driver = webdriver.PhantomJS(executable_path=r'/home/kylinu/下载/phantomjs-1.9.6-linux-x86_64/bin/phantomjs')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/kylinu/.local/lib/python2.7/site-packages/selenium/webdriver/phantomjs/webdriver.py", line 56, in __init__
desired_capabilities=desired_capabilities)
File "/home/kylinu/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 91, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/home/kylinu/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 173, in start_session
'desiredCapabilities': desired_capabilities,
File "/home/kylinu/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 233, in execute
self.error_handler.check_response(response)
File "/home/kylinu/.local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 165, in check_response
raise exception_class(value)
selenium.common.exceptions.WebDriverException: Message: Error - Cannot find module 'cookiejar'
|
|