String to Number (GUI)

If I fetch a number via get value GUI; it is with commas and is normally saved as string. If I want to use it in formula and pass logical conditions; what is the best way it will be recognised as number?

Have you tried the Rename plugin where you can change meta data

1 Like

Yes. It didn’t work. I found an input from the calculator in which it returns only digits from a string.

Since the value contains a comma (e.g., “RS, 400”), first extract only the numeric part using a split or string manipulation operation.

After that, typecast the value from String to Integer using the Rename Field step.

Please note that whenever a value is fetched using Get Value in Web GUI Automation, it is always returned as a String data type.

1 Like