How to verify text or link

Hello, I am using kantu for chrome and I when I open a site, i would like to check, if the text written on specific place at the website, is the right one. If yes, I would like to proceed next steps of automation, if the checked text is not the right one I would like to skip to another step… is there some solution, which I could use, please? Thanx, JB.

To check text, you can use the verifyText command

if the checked text is not the right one I would like to skip to another step…

For this part, use the built-in if/endif or gotoif commands.

If !(!statusOK)
...do something here if the text is not ok
endif

!statusOK is an internal variable that is FALSE if an error occurred (such as the verifyText failing). The first ! in front inverts the result (so if !statusOK is FALSE, then the if clause is TRUE).

Hello Ulrich, thank you for your comment. About verifyText I know, but could you help me, please, how to write a Kantu for chrome lines for:
verifyText XYZ
if ${!LastCommandOK} ----->or status ok?which one is the right one
click some link
if !${!LastCommandOK}
XXXXXXXXXXXXXXX
verifyText ABC

XXXXXXXXXXXXXXX—what to write here, if I want to go to next step(verifyText ABC)?
Kantu for chrome doesn´t no more the label…
Thank you,
JB

Now I did try even to run just the begining and Kantu wrote me Macro encountered some error :frowning:

I did it, I played some more versions and one run very well.
It is
verifytext XYZ
if if ${!LastCommandOK}
click some link
endif
and than the next step :slight_smile:
wow , thank you very much