Resourceid not being identified in mobile Application using Appium


no_such_element error is thrown when we try to access the resourceid and send values.
Below the code snippet:
MobileElement mobel=((AndroidDriver)driver).findElementByAndroidUIAutomator(“new UiSelector().resourceId(” <>");
MobileElement email=(MobileElement) driver.findElementByClassName(“android.widget.FrameLayout”).findElementById("<>");

Please suggest some other solution.


Probably need to add a ‘wait’ so that the screen and elements render properly: