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: