We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c98df78 commit dc635c2Copy full SHA for dc635c2
src/SeleniumLibraryExtends/report.py
@@ -0,0 +1,15 @@
1
+#!/usr/bin/env python
2
+# -*- coding: utf-8 -*-
3
+#
4
+# Copyright (c) 2022 Cléverson Sampaio <cleverson@sampaio.dev.br>
5
+
6
+from robot.libraries.BuiltIn import BuiltIn
7
8
+class Report:
9
+ def __init__(self):
10
+ pass
11
12
+ def fail(self, exception: Exception):
13
+ self.driver = BuiltIn().get_library_instance('SeleniumLibrary')
14
+ self.driver.capture_page_screenshot("EMBED")
15
+ BuiltIn().fail(exception)
0 commit comments