I have a simple page with a proper resource id. When trying to search for this element, appium script is failing with reason No Such element found.
MobileElement el = (MobileElement) driver.findElement(By.id("com.app:id/tvEmail"));
I tried adding implicit wait for 30seconds, and explicit waits, and Thread.sleep();
Nothing seems to work. Also, there is an inconsistency while searching for this element. Sometimes the element is being searched and most cases it is failing.
Note: the page is loaded properly for all the elements to be visible