Verify match not match usingRegex

Reason:
com.kms.katalon.core.exception.StepFailedException: Actual text ‘CIO | The voice of IT leadership’ and expected text ‘CIO | The voice of IT leadership’ are not matched using regular expressionype your question here. Then choose a suitable category and tag(s)
match

2 Likes

what is your KS version?

The | in your phrase above is a RegEx character (see pipe symbol in link). If you want it to be a “normal” character, then you need to “escape” it, or put it like: CIO \| The voice of IT leadership. Personally, I would not do the comparison with RegEx as it seems you want to make a direct comparison, so set the boolean to false.

Edit: For Groovy, you might need to change it to: CIO \\| The voice of IT leadership.

3 Likes