I have a problem with running Appium on my Android app. On release build, everything works fine. I'm able to run some basic test cases etc. The problem is when I switch from release to debug build. For debug, Appium is not able to open the app, there is a black screen and then error:
Exception in thread "main" org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters.
....
On emulator app is opened but this error still occurring with the same stack-trace (and again, release build works just fine)
I've tried already running my tests on different android versions (API 23, 24, 28) and results always the same.
I'm using AndroidDriver
to find elements by id and click on them.
Is any reason why release builds works but debug not. Is there something I can do in order to run my tests on debug build?
Edit 1. My application is a Native Android app. I'm not able to open the debug app with the Appium desktop (I just see the Android home screen because Appium is not able to run the app).
According to differences between debug and release:
release build (exact opposite for the debug build):
- debuggable disabled
- minify enabled
- shrink resources enabled
- proguard enabled
Plus release build is signed