Skip to content

Commit 8f80596

Browse files
authored
Remove persist arg from Set Screenshot Directory keyword (#1189)
* Remove persist arg from Set Screenshot Directory keyword.
1 parent 35350fc commit 8f80596

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/SeleniumLibrary/keywords/screenshot.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class ScreenshotKeywords(LibraryComponent):
2626

2727
@keyword
28-
def set_screenshot_directory(self, path, persist='DEPRECATED'):
28+
def set_screenshot_directory(self, path):
2929
"""Sets the directory for captured screenshots.
3030
3131
``path`` argument specifies the absolute path to a directory where
@@ -40,17 +40,14 @@ def set_screenshot_directory(self, path, persist='DEPRECATED'):
4040
The previous value is returned and can be used to restore
4141
the original value later if needed.
4242
43-
Deprecating ``persist`` and returning the previous value are new
44-
in SeleniumLibrary 3.0.
43+
Returning the previous value is new in SeleniumLibrary 3.0.
44+
The persist argument was removed in SeleniumLibrary 3.2.
4545
"""
4646
if is_noney(path):
4747
path = None
4848
else:
4949
path = os.path.abspath(path)
5050
self._create_directory(path)
51-
if persist != 'DEPRECATED':
52-
self.warn("'persist' argument to 'Set Screenshot Directory' "
53-
"keyword is deprecated and has no effect.")
5451
previous = self.ctx.screenshot_root_directory
5552
self.ctx.screenshot_root_directory = path
5653
return previous

0 commit comments

Comments
 (0)