diff --git a/automon/integrations/seleniumWrapper/browser.py b/automon/integrations/seleniumWrapper/browser.py index a4f58551..7467fa4b 100644 --- a/automon/integrations/seleniumWrapper/browser.py +++ b/automon/integrations/seleniumWrapper/browser.py @@ -301,14 +301,20 @@ def close(self): @staticmethod def error_parsing(error) -> tuple: - error_parsed = f'{error}'.splitlines() - error_parsed = [f'{x}'.strip() for x in error_parsed] - message = error_parsed[0] - session = error_parsed[1] - stacktrace = error_parsed[2:] - stacktrace = ' '.join(stacktrace) - - return message, session, stacktrace + try: + error_parsed = f'{error}'.splitlines() + error_parsed = [f'{x}'.strip() for x in error_parsed] + message = error_parsed[0] + session = error_parsed[1] + stacktrace = error_parsed[2:] + stacktrace = ' '.join(stacktrace) + + return message, session, stacktrace + + except Exception as e: + logger.error(e) + + return error, None, None def find_element( self,