In Gauge [python] custom_screenshot_writer not working when driver is none #2430
KrishnaAstra
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Discussed in #2428
Originally posted by KrishnaAstra November 8, 2023
I use Gauge and have created the following Custom screenshot method to get full screen screenshots, It works fine.. However when the script fails before driver instantiation I had returned None but it fails...
Custom method:
@custom_screenshot_writer
def take_screenshot():
"""Custom Utility for Screenshot capture as per the called drivers
Error Message: Exception calling application: expected str, bytes or os.PathLike object, not NoneType
I have some precondition and db verification steps which does not need driver to be present and where I dont have to have screesnhots as well. So what should I return so that Gauge does not throw me error
Beta Was this translation helpful? Give feedback.
All reactions