You gave the key text
in the Map as 2nd argument of findTestObject() call.
Mobile.verifyElementExist(findTestObject('Roles/Role_Audit/Audit_Date',
['text' : "${AuditDate}"]), 0)
This is a mistake.
Your Test Object has an interpolation expression ${AuditDate}
. Then you need to specify the name of the expression (AuditDate
) as the key of Map as the 2nd argument for findTestObject() call:
Mobile.verifyElementExist(findTestObject('Roles/Role_Audit/Audit_Date',
['AuditDate' : "${AuditDate}"]), 0)