How to get the attribute aaname/inner text from an element which has different aaname / innertext at each occurance?

I tried using get attribute activity to get the aaname/ inner text, but the selector doesn’t have any attribute to make it stable if aaname changes the get attribute activity fails.

Open UI Explorer, click the element, and show us the available properties. It doesn’t make sense to use aaname in a Get Attribute that you want to get aaname. If you already know aaname (to use it in the selector) then why would you need to get it with Get Attribute?

If aaname is what you want to get, you have to use other properties in the selector.

The aaname / innertext of this element is either ‘select one’ or ‘create new identity’.
No other property of the element seems stable or dynamic to identify the element.


What are you trying to do? If the aaname is one of those two values, then use a Check App State to see if it exists with aaname=‘Create new identity’ - if it does then use that in the Target Appears section to do whatever you need to do (ie click it). If it doesn’t exist then use the Target Doesn’t Appear section and your click (or whatever) would have aaname=‘Select one’ in the selector.

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