音乐分享(自动连播):
So cold
Not my baby
Wicked Game
What Is Love
Once Upon a Time
The Heart Of The Ocean
Sun Goes Down
Move That Body
Lose Control
云山
一趟
记录分享 记录是一种习惯 、分享是一种态度
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模式就行了

本文最后更新时间 2022-08-02
文章链接地址:https://me.jinchuang.org/archives/944.html
本文内容未来会持续更新·本站文章除注明[转载|引用|原文]出处外,均为本站原生内容,转载前请注明出处


留言

顶部