再看下Page Objects的github地址:https://github.com/eeaston/page-objects ? 看着好像很多文件是不是很复杂的样子?
无需代表整个页面都建模 针对相同动作的不同结果被建模为不同方法 selenium的po https://selenium-python.readthedocs.io/page-objects.html page-objects 安装:pip install page_objects 相关介绍 https://github.com/eeaston/page-objects https://page-objects.readthedocs.io