Hi,
I am writing an assertion that the string amount is the same on two different pages. I took the payment amount string from one page (below) and I stored it in a variable like this:
money = WebUI.getText(findTestObject('RCGP_Portal/RCGP_Exams_Page/Training_Tab/My_RCGP_Exam_Page/ExaminationFee'))
Page 1:
Then I want the test to check that the text from the variable is found anywhere on this page, and I did it this way:
WebUI.verifyTextPresent(money, false)
Page 2:
However the test fails and is giving me this error: Caused by: com.kms.katalon.core.exception.StepFailedException: Text '£1050.0' is not present on page
I think this might be because of the formatting as there is a comma on the second amount, but should it matter if I used ‘VerifyTextPresent’, as the text is still all there on the page but just with a comma?
TLDR: Script fails as it can’t find £1050 on a page even though the text is present
Thanks!