selenium报错解决,老脚本的重新使用和修理(练练英语)

1.DeprecationWarning: executable_path has been deprecated, please pass in a Service object
It means you have to pass a Service object, rather than pass “executable path” in the old-fashioned version.
So it’s caused by the update of selenium.
2.selenium.common.exceptions.WebDriverException: Message: Service D:\python!\geckodriver-v0.26.0-win64\geckodriver.exe unexpectedly exited. Status code was: 64
It means your geckodriver.exe has unexpectedly exited due to some unknown issues, you can just try download the latest version of geckodriver.exe to solve it.

I solved it in this way.

3.由于目标计算机积极拒绝,无法连接。
我怀疑是selenium开的页面太多了。
4. No connection adapters were found
原因是request的url给错格式了。

你可能感兴趣的:(selenium,python,测试工具)