You can find partial text in several manners, but I use the String method, “contains()”, like:
WebUI.verifyMatch(WebUI.getAttribute(findTestObject('...'), "value").contains("your partial text").toString(), "true", false)
or
WebUI.verifyMatch(WebUI.getText(myItem).contains('780').toString(), "true", false)
Note: “contains()” returns a boolean value (true or false). If you want, you can just verify with an “Assert” statement.
Another method is to use Regular Expression (RegEx) in which you match with wildcard, like:
WebUI.verifyMatch(WebUI.getText(findTestObject('myPage/li_LastUpdatedTimeStamp')),
"(?i)Last Updated by ${gUserName} on ${gFormattedDate} .*", true)
WebUI.verifyMatch(WebUI.getText(findTestObject('...')),
gFormattedDate + "\\s\\d{1,2}:\\d{2}\\s(a|p)m.", true)
To use RegEx with “verifyMatch”, change the last boolean value to “true”. You should read up on RegEx because there are several characters that act differently than regularly, such as {, \
, ( and )
In the first example I start with “ignore letter case” and at the end I have the wildcard, (Katalon has it as a period with asterisk), to match everything else after the date. In the second example, I try to match a specific phrase based on characters: a space, either one or two digits, a colon, then two digits followed by another space and then either an “am” or “pm” ending in a period, similar to your “3/5/2025, 3:22 pm.”