Skip to content

Commit

Permalink
feat: Allow full page screenshot as run_on_failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kumy committed Dec 12, 2021
1 parent 9120705 commit 0522d37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SeleniumLibrary/__init__.py
Expand Up @@ -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:
Expand Down

0 comments on commit 0522d37

Please sign in to comment.