Open Akash-ramesh opened 4 months ago
@Akash-ramesh
how you are trying to run the emulator in headed mode ?, only way is Via vnc, you cant run it in headed mode using terminal. Regarding test failing best thing todo is to take screenshot on failure in order to be able to debug.
Hi @Akash-ramesh I have been encountering the same issue as well, did you find any solution to it? NOTE Appium works fine on my own device locally on the emulator, however when I try to run it in headless mode it throws NoSuchElementError: An element could not be located on the page using the given search parameters. I tried adding a delay to ensure the emulator and the app launch were ready to run the tests, but I still got the same error!
@amrsa1 can you please confirm if we can run the unit tests in headless mode?
Headless mode should be working fine but somtimes the android image is not stable in headless mode, neverthless you can still overcome the android crashing issue, follow up this article to resolve this issue
Check the debugging section https://webdriver.io/blog/2023/05/31/guied-for-xplatform-nativeMobile-app
Thanks @amrsa1 for the quick response, I will check the article!
Hi @amrsa1 ,
Thanks in advance for the repo.
I am new to automation and I am trying to integrate my test scripts written in python and using appium technology to pipeline. Can we use headless mode for UI testing?
I am not able to launch emulator in headed mode. I am getting the following error :
I am able to launch emulator in headless mode, but my test cases are failing with Element not found exception