Adding screenshot in test output for find failed error
I am using HTMLTestRunner to generate html output reports for my tests. I want screenshot in my output report for find failed errors.
My FindElement function looks like below:
def findElement( element ):
print "Finding element: " + str(element)
try:
except FindFailed:
But if any element is not found during execution, then screenshot is not getting displayed in output report.
Although, screenshot appears properly in case of assert failures for below assert function:
def assertElementEx
print "Asserting whether element exists: " + str(element)
try:
except AssertionError:
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: