Validate dynamic text

How can we validate dyanmic text in xpath?

Hi @emmanuel,
Can you elaborate on your intention?
If you want to use dynamic elements, I believe this article has the correct information for you:

HI Ran,

Im trying to validate anu text in the textview element

android.view.ViewGroup/android.view.ViewGroup/android.widget.TextView[@text += '*']

@emmanuel Use a dynamic element with the ‘Get text (if visible)’ action and save the value to a parameter.
Then, continue with other steps (Click e.g.) and condition them to execute if the new parameter’s value equals to the text you searched for.

Thanks ran

Will try this