Describe the bug
I've been using Browser library from python directly instead of using it through .robot / .resource files. I have activated & configured the highlight_on_failure andrun_on_failure library arguments and i would expect to see a screenshot in the robot log file when any keyword of the Browser library fails.
To Reproduce
Steps to reproduce the behavior:
- Create your own python library for robot framework
- Use Browser library keywords within your custom python keywords
- For testing purposes, use any invalid locator or change something else to run into an error
- Open the log file
- Error is raised & shown in the log file but the screenshot is missing at all.
Expected behavior
The error gets logged into the log file and additionally the Browser library adds the screenshot which should get taken due to the run_on_failure configuration.
Screenshots
Desktop (please complete the following information):
- OS: WSL (Linux)
- Browser chrome
- Version [e.g. 22]
Additional context
Using browser library version 19.12.4