Calculated fields

My page has several fields where the user enters data. As each field loses focus, some calculations are performed via javascript and the results entered into other fields.

My test consists of a click statement for each enterable field, followed by an editContent to put the value into the field. After I have supplied values for all the fields, I use assertText statements to check the values of the calculated fields.

However, the first assertText statement fails because all the calculated fields are blank. When I click back onto the KR window, they are suddenly filled in.

IS this a bug or is there something else I need to do to make the calculations work?

It appears I have to use focusAndWait instead of the click commands. All works correctly when I do that.

1 Like