How can we make a get text activity more dynamic

Hi All,

Currently my get text activities shows up with this issue almost all my get texts, this is not CV. is there any way that can make this more dynamic?

Get Text ‘PENDING’: Could not find the user-interface (UI) element for this action.

Possible solutions:
• Ensure application is opened and the UI element is visible on the screen at execution time
• Edit the Target of the UI activity and use Validation to debug the issue.
• If needed, re-indicate the element as its properties might have changed
• Use “Check state” activity to check the application state before executing the action
• Increase the “Delay before” value to allow time to the application to render entirely and become responsive

Could you please provide some examples and screenshots regarding used selectors, what text you are trying to read, etc.
Without knowing what you are trying to do and how you are trying it won’t be possible to give any other advice then what is already given in the standard solution text.

Hi @Aki1111 ,

It depends on what you mean as more dynamic if the selector is changing you may want to pass dynamic values through a variable, for example, here I pass a variable to find the correct row on a table.

Other strategies could be using the UiExplorer to find more stable attributes to build your selectors, also consider using anchors and CV as a fallback method.

Sounds like an issue with the selector, not the activity. There are plenty of strategies to make dynamic selectors, what have you tried?

Hi @Aki1111

Try to check with Element Exists or Find Element before Get Text to ensure the element is available. Make selectors dynamic with wildcards (*,?..) or variables. Add DelayBefore or use Retry Scope. Use UI Explorer to refine selectors if they change often.

If helpful, mark as solution. Happy automation with UiPath

The fact that it says “get text ‘pending’” makes me think you have the value of a field as part of the selector, so when the value is different then the selector fails. What exactly are you trying to do?

Hi @Aki1111

From what I understand, you are trying to fetch the text from aaname or inner text property of the element.

So in such cases, you should tune your selector around other properties such as tablerow, tablecol if it’s from table cell or let’s say class or id of that selector.

You don’t use aaname or inter text property in a selector for which you are trying to get text as I understand you are trying to get dynamic text shown at the moment. Specifying these in the selector would restrict the selector tor to only fetch value when text is pending.

If you open/explore your selector in ui explorer, you will be able to see what other properties can be used instead.

You can share screenshot here with us from Uiexplorer for your element and we can also help you fine tune the same.

Hope this helps.

Regards
Sonali