How to include selenium screenshot in pytest bdd for passed tests?
问题 I am writing tests in pytest bdd with selenium. I am using pytest-html to generate report. For debug purpose or just to have a proper logging, I want selenium screenshots and rest of the logs in html report. But I am unable to have selenium screenshot in passed report. Here are the things I am trying. There is a pytest-html hook wrapper in conftest.py conftest.py @pytest.mark.hookwrapper def pytest_runtest_makereport(item, call): pytest_html = item.config.pluginmanager.getplugin('html')