If condition in UI Element

Hi,

I have this website where I need to check if the account is 0Kg.
If it is 0Kg I need to click on “Close” or else I need to click on “Select Stock”.

I have used the UI element and used Indicate Element on the UI “0Kg” ONLY as shown below:

And I did the same on “Open AND 0Kg(0Kg)” as shown below:

Can you help me how to set this If condition please?

Thanks!

Hi,
Get Text from Ui Selector:

image
and in IF condition do logic.

for eg.
text.Contains(“(0kg)”)
Then: Click “Close”
Else Click “Select Stock”

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