Trim, compare/match, convert strings keywords issue - mobile automation

Hi All,

I need to compare two strings in my mobile automation.
I am unable to do it - getting the error:

2020-01-13 14:20:38.507 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Unable to verify match between actual text ’ • Showing 7 days fixtures for all popular competitions
• Click here to select favourite competitions’ and expected text ’ • Showing 7 days fixtures for all popular competitions
• Click here to select favourite competitions ’ using regular expression (Root cause: com.kms.katalon.core.exception.StepFailedException: Actual text ’ • Showing 7 days fixtures for all popular competitions
• Click here to select favourite competitions’ and expected text ’ • Showing 7 days fixtures for all popular competitions
• Click here to select favourite competitions ’ are not matched using regular expression

My script is,
Mobile.verifyMatch(expdTxt, actTxt, true)
– did try errorhandling one too - didnt work

Also, I need to trim multi line strings that would have bullet points and newline characters, make it a plain text and compare it with the expected string.

Please let me know the solution for this.

Thanks,
Roopa

Hi @roopa,

For trimming a string and replacing text, this post might help:

– Chris

1 Like