I am trying to automate a native application in android.In that application I have login functionality.I automated the positive flow.Now I am trying to get the error message which is showing in a popup if i wont fill the Email field.This popup is not identify by the UIAUTOMATORVIEWER.
I am using python and UIAUTOMATOR.Someone please suggest me how to get the error message which is showing in the popup.
Below I am attaching the image.
I want to print 'Field cannot be empty' message shown in the popup.
print self.d(text='Email').text
giving the 'Email' text not the 'Field cant be empty' message.
I just wrote this code to give you a path. Do advancements as per your requirment :
Xml:
And when your Email is !(email.length>0) do like this:
Java code: