Appium finds the button but does not click on it

Hi

I have a weird issue with Appium where even if it finds the button it does not click on it. But sometimes, there is no pattern as such it finds the element and click on it.

I am using latest version of Appium on Android Emulator.

I also face the same issue with click(), try using tap instead.

Hi Sneha,

Thanks for the reply. I tried with tap but still facing the same issue. Please advise.

I’m facing the same issue in Android 7.0. However, it worked fine in Android 6.0
So what I did for 7.0 is , Minimize the app and relaunch it before clicking on the element and it worked.

can you try providing automationName capability as uiautomator2 in the capabilities and try?