Hi there! I've been exploring selenium IDE and encountered an issue related to asserting an approximate value. My challenge is to validate a numeric value within an element identified by its id, where the value is in numerical format with commas separating decimals.
The task at hand requires me to verify if the numeric value falls within a tolerance of 0.01.
Let's consider an example:
<div id="uniqueId">2,54</div>
assertText - value = 2.53
In this case, I need the test to pass based on the provided example, as well as for values like 2,52 or 2,53. While I am aware that assertEval allows insertion of JavaScript code, my proficiency in JavaScript is limited. Additionally, the capabilities of selenium in terms of executing JavaScript are somewhat restricted from what I have gathered.
Any guidance or assistance on this matter would be greatly appreciated!