Unable to verify match between actual text and expected text

This works for me :

String variable1 = WebUI.getAttribute(findTestObject(‘XXXXX’), ‘checked’, FaiilureHandling.OPTIONAL)

String variable2 = findTestData(‘YYYY’).getValue(1, 4)

WebUI.verifyMatch(variable1.toString(),variable2.toString()), false)

1 Like