diff --git a/pyproject.toml b/pyproject.toml index 731bee0..16d21b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ classifiers = [ dependencies = [ "pytest>=6.0.0", "pytest-base-url>=2.0.0", - "pytest-html>=2.0.0", + "pytest-html>=4.0.0", "pytest-variables>=2.0.0", "requests>=2.26.0", "selenium>=4.0.0", diff --git a/src/pytest_selenium/pytest_selenium.py b/src/pytest_selenium/pytest_selenium.py index b013dc5..dfa248e 100644 --- a/src/pytest_selenium/pytest_selenium.py +++ b/src/pytest_selenium/pytest_selenium.py @@ -302,7 +302,7 @@ def pytest_runtest_makereport(item, call): ) if summary: report.sections.append(("pytest-selenium", "\n".join(summary))) - report.extra = extra + report.extras = extra def _gather_url(item, report, driver, summary, extra):