appium / appium-docker-android

Appium Server setup to automate android testing on real devices
https://hub.docker.com/r/appium/
Other
604 stars 230 forks source link

Error when calling driver.fingerPrint() #150

Closed bhein-sherpa6 closed 1 year ago

bhein-sherpa6 commented 1 year ago

An error is occurring when trying to call the fingerPrint() method against the containerized Appium server

driver.fingerPrint(1);

Error:

org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command '/opt/android/platform-tools/adb -H host.docker.internal -P 5037 -s emulator-5554 emu finger touch 1' exited with code 1'; Command output: error: could not connect to TCP port 5554: Cannot assign requested address

I can also reproduce this by calling adb inside the container directly:

brandon@Brandons-MacBook-Pro provisioner % docker exec -it appium adb -H host.docker.internal -s emulator-5554 -e emu finger touch 1
error: could not connect to TCP port 5554: Cannot assign requested address

This call works as expected using a local Appium server and or adb.

budtmo commented 1 year ago

Hi @bhein-sherpa6 ,

it seems you use emulator for that project. please have a look docker-android for using android emulator because this project is for real device. I will close the issue for now, but feel free to reopen the issue.