I can’t confirm this is a problem until I install 7.2.6. However, I can confirm it is working properly in 7.2.4.
Please try the same code on your system, and report back…
WebUI.navigateToUrl("http://forum.katalon.com/")
WebUI.waitForPageLoad(10)
TestObject logo = makeTO("#site-logo")
if(WebUI.verifyElementPresent(logo, 10, FailureHandling.OPTIONAL)) {
println "XXXXXXXXX Should see this"
} else {
println "XXXXXXXXX Should NOT see this"
}
logo = makeTO("#site-logo-not-present")
if(WebUI.verifyElementPresent(logo, 10, FailureHandling.OPTIONAL)) {
println "XXXXXXXXX Should NOT see this"
} else {
println "XXXXXXXXX Should see this"
}
You can get a copy of makeTO
here: