请帮帮我! 当我试图用pytest + selenium运行我的简单测试时,它不会启动。只是什么也没有发生:不能运行pytest + selenium
import pytest
def test_example(selenium):
selenium.get('http://www.example.com')
截图https://gyazo.com/01d93c221cc6acff0446f1fb473000cb
注:我做的是相同的,在我的工作电脑 - 它的作品!
请帮帮我! 当我试图用pytest + selenium运行我的简单测试时,它不会启动。只是什么也没有发生:不能运行pytest + selenium
import pytest
def test_example(selenium):
selenium.get('http://www.example.com')
截图https://gyazo.com/01d93c221cc6acff0446f1fb473000cb
注:我做的是相同的,在我的工作电脑 - 它的作品!
我白痴((( 安装pytest硒 要使用PIP安装pytest硒:
$ PIP安装pytest硒
我认为这是不够的: PIP安装pytest pip安装硒
我想说明你可以使用pytest-selenium,但是你也可以使用pytest和selenium(例如你的requirements.txt中的selenium == 3.0.2)文件。看起来像一个依赖性issu即
我还想指出,您上传的屏幕截图包含您的临时环境的敏感信息。您应该编辑它或完全删除文件。