I would like to be able to use a regular expression to match an object property when testing on Android. However, I noticed setting the condition to “matches regex” does nothing. I looked at the ConditionType class and could see it had a specific “expression” subtype with a comment saying “for mobile”. Unfortunately I can’t set that from within the Katalon TestObject editor.
I tried modifying the XML of my TestObject directly though and set matchCondition to “expression” and value to the regular expression I wanted. I executed my test successfully and could see that Katalon generated the Android UI Automator selector that I wanted with descriptionMatches and my supplied regular expression.
Obviously you can use the “expression” type for some object properties but it can’t be set from within the Katalon UI. How is it supposed to be used?