How to verify password field is empty or not using uiautomatorviewer

Hi,
I want to verify password filed i.e it is empty or some text is present.
I have taken two screenshots. One of screenshots have some text is enter in password field and in another one password field is empty.
After comparing both screenshots, I am unable to verify that password field is empty or not.
After comparing both screenshots, all attributes are giving same value.

Please find attached two screen shots.

Have you tried getText of web element and equal it with “” ?

If password field is empty then i am getting empty value using getText() OR
If i have entered some text in password field then also i am getting empty value using getText().

if u see screenshot namely Password_Field_Text.jpg , u will know the attribute text is coming empty after entering some text in password field.

how to verify password field is empty or have some value?

Masking fields are not identified by getText() method :slight_smile: