Check the attribute (aaname) of UiElement using If Activity

There is an UiElement having selector:

I want to check that this selector contains aaname value as that of entered by the user which stored in variable “WorkID” using the “IF” activity. Can anybody help me with this?

You can use Get Attribute activity to get data of aaname attribute to store in a String variable. And use contains function of String variable to check that entered data is contain or not

Hi @Varun_Jain,

Welcome to Uipath,

You Can also Get Text Activity - check the selector if any static values in aaname or inner text make it (*)- Assign (OutputVariable)

Use If condition - outputvariables.contains()


Try Using find children activity
Use for Loop
Inside for loop use Get Attribute activity

Hope this helps.

Works Great. Thanks for your help.

Thanks for your help.

1 Like

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