We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c741be commit 47141cdCopy full SHA for 47141cd
1 file changed
pytest_splinter/plugin.py
@@ -467,8 +467,15 @@ def _browser_screenshot_session(
467
if not splinter_session_scoped_browser:
468
return
469
470
- for name in request.fixturenames:
471
- value = request.getfixturevalue(name)
+ fixture_values = (
+ # pytest 3
472
+ getattr(request, "_fixture_values", {})
473
+ or
474
+ # pytest 2
475
+ getattr(request, "_funcargs", {})
476
+ )
477
+
478
+ for name, value in fixture_values.items():
479
should_take_screenshot = (
480
hasattr(value, "__splinter_browser__")
481
and splinter_make_screenshot_on_failure
0 commit comments