Selectors - changable

We have an application where I need to be able to select an item from a menu; however, the menu items can vary.
The text is always the same but the number that follows the menu item is variable.

For example, if I want to click on the referrals item in the screenshot, the selector code generated is

java role=‘page tab list’ /
java name=‘Clinical’ role=‘page tab’ /
java cls=‘td’ role=‘tree’ /
java name=‘Referrals (5)’ role=‘label’ /

image

Looking for a way to select an item notwithstanding the number of items

Thanks

Wildcarding the number maybe helps:

java name=‘Referrals*’ role=‘label’ /

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.