Skip to content

Commit

Permalink
Revert "Merge pull request #157 from SunilMohanAdapa/fix-session-brow…
Browse files Browse the repository at this point in the history
…ser-screenshots"

This reverts commit 6c741be, reversing
changes made to 2446326.
  • Loading branch information
mpasternak committed Aug 7, 2022
1 parent 6c741be commit 47141cd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pytest_splinter/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,15 @@ def _browser_screenshot_session(
if not splinter_session_scoped_browser:
return

for name in request.fixturenames:
value = request.getfixturevalue(name)
fixture_values = (
# pytest 3
getattr(request, "_fixture_values", {})
or
# pytest 2
getattr(request, "_funcargs", {})
)

for name, value in fixture_values.items():
should_take_screenshot = (
hasattr(value, "__splinter_browser__")
and splinter_make_screenshot_on_failure
Expand Down

0 comments on commit 47141cd

Please sign in to comment.