@Piotr Thanks for your reply. Can i also check with you why im getting incorrect results. Its slightly not related to runscript command. Here are my steps :
storeEval |(’${sourceText}’).includes(’${targetText}’) | Checker
echo | ${Checker} //im getting true here
if | !(${Checker}) //here im checking if ‘Checker is false’. If its false then logically it should not go inside the if.
click | Text not found on the page
endif
Basically, i just want to verify that “targetText” is within the “sourceText”. If its true (mean its within the text), then it means its pass.
But katalon recorder still executes the inside of if (the click | Text not found on the page part) even though the if clause if false.
Here are the logs :
[info] Store ‘true’ into ‘Checker’
[info] Executing: | echo | ${Checker} | |
[info] Expand variable ‘${Checker}’ into ‘true’
[info] echo: true
[info] Executing: | if | !(${Checker}) | |
[info] Expand variable ‘!(${Checker})’ into ‘!(true)’
[info] Executing: | click | Text not found on the page | |