18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Formatting strings
Is it possible to 're-format' a string in sahi.
I have a balance string or 10,000,000.00 and I want to reformat it to 1000000000. Basically, just remove the separators (commas and decimal points) from the string.
The scenario is, we would store this balance in our database as 1000000000, but the page would display it as 10,000,000.00. I'd like to compare what is in the database to what is on the screen, but they are in two different formats.
Thanks again.
TSheeley
I have a balance string or 10,000,000.00 and I want to reformat it to 1000000000. Basically, just remove the separators (commas and decimal points) from the string.
The scenario is, we would store this balance in our database as 1000000000, but the page would display it as 10,000,000.00. I'd like to compare what is in the database to what is on the screen, but they are in two different formats.
Thanks again.
TSheeley
This discussion has been closed.
Comments
try "10,000,000.00".replace(/\D/g, "");
Regards
Wormi