新版selenium不支持PhantomJS 要用老版本吗
mote0302 opened this issue · comments
moo commented
File "/Users/moo/project/01_yanglian/Image-Downloader/crawler.py", line 27, in
dcap = dict(DesiredCapabilities.PHANTOMJS)
AttributeError: type object 'DesiredCapabilities' has no attribute 'PHANTOMJS'
林炅 commented
4.1.0版本太高了 我卸载了重装了pip install selenium==2.48.0可以运行了