From 0522d377fad27324722fbc16600e1e50ca0bd412 Mon Sep 17 00:00:00 2001 From: Mathieu Date: Sun, 12 Dec 2021 22:28:26 +0100 Subject: [PATCH] feat: Allow full page screenshot as run_on_failure --- src/SeleniumLibrary/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SeleniumLibrary/__init__.py b/src/SeleniumLibrary/__init__.py index c47ee4100..e1d61c62a 100644 --- a/src/SeleniumLibrary/__init__.py +++ b/src/SeleniumLibrary/__init__.py @@ -550,6 +550,8 @@ def failure_occurred(self): self._running_on_failure_keyword = True if self.run_on_failure_keyword.lower() == "capture page screenshot": self.capture_page_screenshot() + elif self.run_on_failure_keyword.lower() == "capture full page screenshot": + self.capture_full_page_screenshot() else: BuiltIn().run_keyword(self.run_on_failure_keyword) except Exception as err: