Check if complex element contains a particular text
open
https://forum.katalon.com/t/check-if-a-text-is-present-in-an-element-containing-other-elements/54699
https://forum.katalon.com/t/check-if-a-text-is-present-in-an-element-containing-other-elements/54699
storeText
//article[@id='post_1']/div[2]
//article[@id='post_1']/div[2]
//article/div[2]
text
assertEval
storedVars['text'].includes('Katalon Recorder')
${text]
${text].contains("Katalon Recorder")
${text}.contains("Katalon Recorder")
${text}.contains('Katalon Recorder')
${text} + '1241242'
"${text}.contains('Katalon Recorder')"
"${text}".contains('Katalon Recorder')
storedVars[text].contains('Katalon Recorder')
storedVars['text'].contains('Katalon Recorder')
storedVars['text'].includes('Katalon Recorder')
true