To ensure that the value inside the brackets of GetText(0) matches the Count variable, you can use a Do While loop in UiPath

I have fetched Count variable from one workflow. Count = n.

In next workflow I want to make validate the Count variable in following GetText value.
GetText = RequestedItem(0)

When I try to use getText activity it is using CV since it is a button element

I want to validate the value for (). It should match the value of Count. Till then it should refresh the browser. . How should I do it?

Hi @Bhushan_Nagaonkar, if you are using modern activities you can make use of verify property to validate it directly. Try making use of it

1 Like

Can you please share or brief me about it. I want to check if value inside the bracket matches the count variable.

Okay sure but before that what type of automation is this? Desktop or UI based or Citrix?

Webbased automation.

you can use check element by passing variable instead of 0 similar to ({{count}}) in selector. it returns false if the selector is not matching make sure you unchecked fuzzy selector and check strict selector.

Hope this will help!

Cheers,
Mounika

Actually unable to use fuzzy/strict since it is a button it reads as a CV

Instead use get text by specifying an anchor. have you tried?

I have to try I will update.

Thanks it is working

1 Like

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