I am trying to perform a JavaScript evaluation in Selenium IDE that involves multiplying 3 decimal values.
javascript{parseFloat(storedVars['val1'])*parseFloat(storedVars['val2'])*parseFloat(storedVars['val3'])}
However, when I run the code, it only returns a value of 1.
Executing: |store | javascript{parseFloat(storedVars['val1'])*parseFloat(storedVars['val2'])*parseFloat(storedVars['val3'])} | couponOdds |
[info] Executing: |echo | Total odds value: ${val1} *${val2} *${val3} = ${couponOdds} | | [info] echo: Total odds value: 1.02 * 1.50 * 1.30 = 1
What can be done to ensure that the calculation works correctly?