On a website I need to check a UI element to see if it is 0kg or near 0kg. If “YES” click “CLOSE”, if NO do another action.
However, the UI element is not constant. There are some small changes in it as shown below:
I am using an “Anchor” activity on the “Open:” and a “Get Text” activity on the left part.
I am saving my Get Text in a “openText” variable. I splitted it using the code below:
openText = openText.Split(" "C)(1)
My If statement is as follows:
But I am not able to cater for every event. Can someone help me please?