warnings.warn('Selenium support for PhantomJS has been deprecated, please use headless
· 技术积累 · Python Linux

使用selenium+PhantomJS保存网页快照时的警告信息,是因为selenium已经不支持PhantomJS了
虽然有此警告提醒,但是selenium+PhantomJS还是可以正常保存截图用的

警告输出信息:

/usr/python3/lib/python3.6/site-packages/selenium/webdriver/phantomjs/webdriver.py:49: UserWarning: Selenium support for PhantomJS has been deprecated, please use headless versions of Chrome or Firefox instead
  warnings.warn('Selenium support for PhantomJS has been deprecated, please use headless '

解决:
改用Firefox或者Chrome的headless模式就行了


本文最后更新时间 2024-03-30
文章链接地址:
https://me.jinchuang.org/archives/944.html
本站文章除注明[转载|引用],均为本站原创内容,转载前请注明出处
使用腾讯云CDN的SDK 用脚本去刷新URL缓存
统计文本中每个字符出现的次数
Nali 离线ip数据库文件
苹果CMS v10内容管理系统搭建

Linux下给文本添加行号

Ubuntu18.04源码安装Nginx

我要留言