Skip to content

Commit ab0e051

Browse files
committed
Fix screenshot destination when using the "sb" fixture
1 parent 1949a14 commit ab0e051

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14052,6 +14052,10 @@ def __get_test_id(self):
1405214052
test_id = self._sb_test_identifier
1405314053
test_id = test_id.replace(".py::", ".").replace("::", ".")
1405414054
test_id = test_id.replace("/", ".")
14055+
elif hasattr(self, "_using_sb_fixture") and self._using_sb_fixture:
14056+
test_id = sb_config._latest_display_id
14057+
test_id = test_id.replace(".py::", ".").replace("::", ".")
14058+
test_id = test_id.replace("/", ".")
1405514059
return test_id
1405614060

1405714061
def __get_test_id_2(self):

0 commit comments

Comments
 (0)