We use React on the back end of our web application for some parts. I have to check if the text of an element corresponds to a given text. I know how to use the verifyElementText() or getText() methods, but because of React, I believe i have to go deeper to get this data for certain elements.
Code I’m using to verify if the data in the element AT_Billed_Gross is the value of 66.50 is below:
WebUI.verifyElementText(findTestObject(‘Audit/Page_/AT_Billed_Gross’), ‘66.50’)
HTML is:
Error I’m receiving is:
2019-10-18 15:21:07.269 ERROR c.k.k.core.keyword.internal.KeywordMain - Actual text ‘’ and expected text ‘66.50’ of test object ‘Object Repository/Audit/Page_/AT_Billed_Gross’ are NOT matched. (Root cause: com.kms.katalon.core.exception.StepFailedException: Actual text ‘’ and expected text ‘66.50’ of test object ‘Object Repository/Audit/Page_/AT_Billed_Gross’ are NOT matched.