I would like to use verifyElementPresent to skip a chunk of code in my Selenium test script. I used something like this successfully in the older Firefox extension, but I can't figure out how to make it work in the Chrome Kantu version.
I have tried both ${!statusOK}==true and ${!lastCommandOK}==true and I have found them to both be finicky. I can't get a consistent test case with either one and I'm not sure why. I used storeElementPresent in the FireFox browser extension and it worked consistently, but that command isn't available in Kantu.
The below link outlines the EXACT scenario I'm trying to use verifyElementPresent for, but it isn't working for me. Does anyone know of another way to do this?
https://a9t9.com/kantu/docs/selenium-ide/assertelementpresent-verifyelementpresent
{
"Command": "verifyElementPresent",
"Target": "//table[@id='phHeader']/tbody/tr/td[3]/div/div/div/span[2]",
"Value": ""
},
{
"Command": "gotoIf",
"Target": "${!statusOK} == true",
"Value": "logOut"
},
{
"Command": "gotoIf",
"Target": "${!statusOK} == false",
"Value": "logIn"
},
I expect that when the element is present, it will go to the "logOut" label of the code.
Please see image of my Kantu player to see exactly where it malfunctions: https://i.stack.imgur.com/21HG0.jpg
Thank you!