有没有人有一个想法或者知道一个与python 3.2兼容的浏览器自动化类库?因为硒似乎是最好的,而许多其他的只有2.7。
谢谢
发布于 2016-12-15 00:44:48
As mentioned by @Blender,您可以使用命令pip install selenium安装selenium for Python3。请注意,如果您想要使用最新版本的Selenium (3.0.2),则需要Python 3.3+ (截止到发布时)。(source)
以下是Selenium 3文档的link。
发布于 2021-11-04 18:50:00
您也可以尝试helium,它基于Selenium,非常易于使用。
安装程序包:
pip安装pip
将其导入您的代码:
来自helium进口的
*
启动Chrome浏览器:
start_chrome('google.com')
有关更多详细信息,请访问作者提供的小抄:https://github.com/mherrmann/selenium-python-helium/blob/master/docs/cheatsheet.md
https://stackoverflow.com/questions/18350842
复制相似问题