healenium / healenium-appium

Self-healing library for Appium-based tests
Apache License 2.0
26 stars 8 forks source link

'POST /elements' cannot be proxied to UiAutomator2 on Local Appium version: 1.21.0 #26

Open genesisthomas opened 3 years ago

genesisthomas commented 3 years ago

Hi @GannaChernyshova @Aliaksei-Ashukha ,

Thanks for migrating to Maven but I'm still getting the same below error when I'm not commenting DriverWrapper.wrap(appiumDriver) line

Error: Original error: 'POST /elements' cannot be proxied to UiAutomator2 server because the instrumentation process is not running (probably crashed). Check the server log and/or the logcat output for more details

Local Appium version: 1.21.0

Similar error with Appium example project: https://github.com/healenium/example_appium_mvn/issues/3

I checked the Logcat too. It is just deleting the session after GetDeviceSize command call instead of sending a POST findelements call for digit_7 selector

2021-08-29 17:42:12.225 6340-6384/io.appium.uiautomator2.server I/appium: GetDeviceSize command 2021-08-29 17:42:12.225 6340-6384/io.appium.uiautomator2.server I/appium: Get window size of the device 2021-08-29 17:42:12.231 6340-6384/io.appium.uiautomator2.server I/appium: AppiumResponse: {"sessionId":"xxxx","value":{"height":1794,"width":1080}} 2021-08-29 17:42:12.403 6340-6384/io.appium.uiautomator2.server I/appium: channel read: DELETE /wd/hub/session/xxxx 2021-08-29 17:42:12.404 6340-6384/io.appium.uiautomator2.server I/appium: DeleteSession command 2021-08-29 17:42:12.406 6340-6384/io.appium.uiautomator2.server I/appium: Stopping uiautomator2 io.appium.uiautomator2.http io.appium.uiautomator2.server 2021-08-29 17:42:12.409 6340-6384/io.appium.uiautomator2.server I/appium: AppiumResponse: {"sessionId":"xxx","value":null} 2021-08-29 17:42:13.163 6340-6364/io.appium.uiautomator2.server I/TestRunner: finished: startServer(io.appium.uiautomator2.server.test.AppiumUiAutomator2Server) 2021-08-29 17:42:13.170 6340-6364/io.appium.uiautomator2.server I/TestRunner: run finished: 1 tests, 0 failed, 0 ignored 2021-08-29 17:42:13.173 6340-6364/io.appium.uiautomator2.server I/MonitoringInstr: waitForActivitiesToComplete() took: 0ms

lknguyen0 commented 2 years ago

Hi all, I would love to try out healenium for our tests, but I am having the same problem - is there anything new on this issue or any pointers/workarounds you can recommend? Thanks in advance!

SureshP8148 commented 2 years ago

Hi all, I would love to try out healenium for our tests, but I am having the same problem - is there anything new on this issue or any pointers/workarounds you can recommend? Thanks in advance!