Can i use 2 value on text ='' in Click activities

image

here is the answer

     text='(^12.*|^32.*)' matching:text='regex'

Hi @Harpoon

You can give a variable by the two values placed in it.

Regards,

Hello @Harpoon

It would be better if you can explain with some sample data
Are you trying to click on the item if the values starts with 12 or 32?

Thanks

Hello @Harpoon ,

As a best practice always assign values to variable and use the variable in your selector.

Regards,
Rohith

I mean in this situation if my sap row data have 3 row
3200xxxx
1300xxxx
1400xxxx
and I want to click on row startswith 32

@Harpoon you can set regex and pass it in the selector. check the below reference doc.

Thanks

image
It’s don’t work. What did I do wrong?

Hi @Harpoon

Send the screenshot of Ui Explorer. Then we will get better idea about the attributes and all.

At a time you can send only one variable. You can perform the operation in UiPath studio and assign that to another variable then pass that variable in the selector.

1 Like

@Harpoon ,

I mean in this situation if my sap row data have 3 row
3200xxxx
1300xxxx
1400xxxx
and I want to click on row starts with 32

So if you want to click in the element which starts with 32, then use a wild card after 32 as(32*) to replace all the upcoming values.

However, if you have a necessity of clicking on the item which either starts with 32 or 12, then use regex based selectors as explained in the below thread.

Regards,
Rohith

1 Like

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