Hi, I have the same issue as you, I get the notification dialog and I compare with the expected text but I don’t know how can I modify my script flow depending of the result of the comparison.
To branch your logic depending on the results of the comparison, you could do the following:
def Mensaje = Mobile.getText(findTestObject(‘Application/Inventario/Inventario - Mensaje’), 120)
def Verificacion = Mobile.verifyEqual(Mensaje, ‘Descarga de inventario finalizada correctamente’, FailureHandling.OPTIONAL)
if (Verificacion) {
// put your code here for what happens when the text matches
}
else {
// put your code here for when the text doesn't match
}