Hi, my problem was caused by the context. I tested a hybrid application and although I could see the login button then I could not click on that. I have resolved by switching the context. You can find more information here -> A web element is seemingly clicked but in fact no action is performed (Android)
Hope it will help you. Good luck.