I have autotests on the links server that run after a certain time. Allure is also present in them so that I can take screenshots and understand where the test fell. Recently, some tests began to fail with a WebDriverException: Message: Session timed out or not found error WebDriverException: Message: Session timed out or not found at the moment when you need to take a screenshot
try: chrome.auth_beta_test("ФЛ") allure.attach('screenshot', chrome.get_screenshot_as_png(), type=AttachmentType.PNG) except: allure.attach('error_screen', chrome.get_screenshot_as_png(), type=AttachmentType.PNG)
Error code:
/opt/py2/lib/python2.7/site-packages/seleniumwrapper/wrapper.py:91: in reaction result = methodobj (* realargs) /opt/py2/lib/python2.7/site-packages/selenium/webdriver /remote/webdriver.py:928: in get_screenshot_as_png return base64.b64decode (self.get_screenshot_as_base64 (). encode ('ascii')) /opt/py2/lib/python2.7/site-packages/selenium/webdriver/remote/ webdriver.py:938: in get_screenshot_as_base64 return self.execute (Command.SCREENSHOT) ['value'] /opt/py2/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py:308: in execute self.error_handler.check_response (response)
self = selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x3bafd50 response = {'status': 404,' value ':' {"status": 13, "value": {"message": "Session timed out or not found "}} '}
Search in Google just added questions. I'm new to this business. Tell me what to do and how to get rid of this error. Thank)