Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
genesisthomas opened this issue Aug 29, 2021 · 2 comments

Comments

@genesisthomas
Copy link
Contributor

genesisthomas commented Aug 29, 2021

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:
healenium/example_appium_mvn#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

@genesisthomas genesisthomas changed the title 'POST /elements' cannot be proxied to UiAutomator2 'POST /elements' cannot be proxied to UiAutomator2 on Local Appium version: 1.21.0 Aug 29, 2021
@lknguyen0
Copy link

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!

1 similar comment
@SureshP8148
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants