Thanks for your reply. There is no other unique attribute for that element. I want to get text from this element to check if app date displayed matches with the mobile device date. I have created the whole test case and it works. but the next day it will fail since the date attribute changes text.
Okay, so now I’m clear we cannot use wildcards for mobile automation. The other solution do you mean to give the selector as below:
“mbl android:className=‘android.widget.TextView’ text= “+variablename” />”