While doing automation, I have to check that email which I am entering is correct one or not. Unfortunately, while creating XPath, UIAutomator is showing me the text of my email address. I want to make XPath dynamic, so, that every time, I use that XPath, It gets the text. Let us suppose:
email = 'testqatp@gmail.com'
and XPath is:
[@text='email']
How is that gonna work?