verifyElementHasAttribute should return boolean but instead forces ERROR

Sorry, I missed this post…

Well, that’s a choice made by the Katalon developers but yes, that meets with the DOM interface standard. What it should NOT do is force an ERROR.

If you bring up the DevTools right on this forum page and put this in the browser console…

document.querySelector('#main').getAttribute('disabled') == "disabled"

it will return false as expected. #main is a <section> element on this page. it does NOT have a disabled attribute therefore the DOM interface returns false.

QED.

1 Like