Hi,
I want to compare two values. One from Excel and the other from input
def montantInput = WebUI.getAttribute(findTestObject(‘Page_F/input_montantHT’), ‘value’)
def montantExcel = findTestData(‘Data_Article’).getValue(8, 1)
WebUI.verifyMatch(montantInput, montantExcel, false)
I got this error:
Unable to verify match between actual text ‘5 000,00’ and expected text ‘5 000,00’ (Root cause: Actual text ‘5 000,00’ and expected text ‘5 000,00’ are not matched)
Any solution, please?
I don’t think it should make any difference but did you try…
String montantInput = WebUI.getAttribute(findTestObject(‘Page_F/input_montantHT’), ‘value’)
String montantExcel = findTestData(‘Data_Article’).getValue(8, 1)
Joeyxx
April 2, 2019, 9:27am
4
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