My locator strategy is finding an element by its content-desc
attribute.
I have some text views on a screen that have this contest-desc
: report_description_textview_X_lines
, where X
is a value between 0 to 3.
How can I get all the elements that have this dynamic content-desc?
I thought of 2 ways, but I do not know how to implement them:
- Find all content-desc that contains the string
report_description_textview_
- Use RegEx in place of the changing value.