Verify text contains on page by custom keyword

Hello guys,

I have one string Like “Test0025 - Good Product - TestProduct”
Now I want to verify some amount of string “Good Product” is contained on a particular page.

I have tried with WebUI.verifyTextPresent("Good Product")

but it will check for whole string.
so want to create a custom keyword for that so our testing department is easily using that.


you can still use regex in this keyword.

WebUI.verifyTextPresent(".*Good product.*", true)

It matches any string, which starts with, contains or ends with your text.