当前位置:网站首页>module ‘selenium. webdriver‘ has no attribute ‘PhantomJS‘

module ‘selenium. webdriver‘ has no attribute ‘PhantomJS‘

2022-06-21 13:39:00 rkmhr_ sef

If you are little white , This set of information can help you become a big bull , If you have rich development experience , This set of information can help you break through the bottleneck
2022web Full set of video tutorial front-end architecture H5 vue node Applet video + Information + Code + Interview questions .

New version of the selenium Has given up PhantomJS, That's why module ‘selenium.webdriver’ has no attribute ‘PhantomJS’.PhantomJS The installation is the latest version ,pip install selenium The latest version is also installed . So the selenium Version down .

1. The first selenium uninstall , The code is as follows :

pip uninstall selenium

2. install selenium==2.48.0 Version of , The code is as follows :

pip install selenium==2.48.0

Perfect run !!!!!

原网站

版权声明
本文为[rkmhr_ sef]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202221434405427.html