问题描述: 在使用 Phantom.js 的时候报错,报错信息如下:
D:\Python37-32\python.exe D:/pyFile/10Selenium.py
D:\Python37-32\lib\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 ’
Traceback (most recent call last):
File “D:\Python37-32\lib\site-packages\selenium\webdriver\common\service.py”, line 76, in start
stdin=PIPE)
File “D:\Python37-32\lib\subprocess.py”, line 756, in init
restore_signals, start_new_session)
File “D:\Python37-32\lib\subprocess.py”, line 1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most r