Matteo-Salv / Thesis

0 stars 0 forks source link

The previously found element "Application 'com.highaltitudehacks.DVIAswiftv2'" is not present in the current view anymore. #23

Open Matteo-Salv opened 1 year ago

Matteo-Salv commented 1 year ago

Process Process-1: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap self.run() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/Users/matteo/PycharmProjects/Thesis/AppiumModule.py", line 140, in startAppiumModule root: eT._Element = eT.XML(self.appiumDriver.page_source.encode()) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 540, in page_source return self.execute(Command.GET_PAGE_SOURCE)['value'] File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 429, in execute self.error_handler.check_response(response) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/appium/webdriver/errorhandler.py", line 30, in check_response raise wde File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/appium/webdriver/errorhandler.py", line 26, in check_response super().check_response(response) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 243, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.StaleElementReferenceException: Message: The previously found element "Application 'com.highaltitudehacks.DVIAswiftv2'" is not present in the current view anymore. Make sure the application UI has the expected state. Original error: Error getting main window kAXErrorServerNotFound Stacktrace: StaleElementReferenceError: The previously found element "Application 'com.highaltitudehacks.DVIAswiftv2'" is not present in the current view anymore. Make sure the application UI has the expected state. Original error: Error getting main window kAXErrorServerNotFound at errorFromW3CJsonCode (/usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/errors.js:923:25) at ProxyRequestError.getActualError (/usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/errors.js:798:14) at JWProxy.command (/usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/jsonwp-proxy/proxy.js:340:19) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at XCUITestDriver.proxyCommand (/Users/matteo/.appium/node_modules/appium-xcuitest-driver/lib/commands/proxy-helper.js:95:12) at XCUITestDriver.getNativePageSource (/Users/matteo/.appium/node_modules/appium-xcuitest-driver/lib/commands/source.js:26:19) at XCUITestDriver.getPageSource (/Users/matteo/.appium/node_modules/appium-xcuitest-driver/lib/commands/source.js:22:10)

Matteo-Salv commented 1 year ago

find a way to handle this exception