# Verify Element Not Present Passing When Element is Present

**URL:** <https://forum.katalon.com/t/verify-element-not-present-passing-when-element-is-present/36327>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [November 14, 2019, 2:42pm UTC](https://forum.katalon.com/t/verify-element-not-present-passing-when-element-is-present/36327 "2019-11-14T14:42:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chriscph1](https://avatars.discourse-cdn.com/v4/letter/c/6bbea6/32.png) [@Chriscph1](https://forum.katalon.com/u/Chriscph1)\
**Post date:** [November 14, 2019, 2:42pm UTC](https://forum.katalon.com/t/verify-element-not-present-passing-when-element-is-present/36327/1 "2019-11-14T14:42:05Z")

</div>

Hello, I noticed Verify Element Not Present was not working properly while creating a test. To verify this I created a test that uses Verify Element Present and Verify Element Not Present on the same element and the test passed. Verify Element Present received a check mark in the Log Viewer as expected but Verify Element Not Present did not get any icon. When I use Verify Element Not Visible the test works as expected. Katalon Studio is up to date with 7.0.9 Enterprise Trial Version.

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [November 14, 2019, 3:12pm UTC](https://forum.katalon.com/t/verify-element-not-present-passing-when-element-is-present/36327/2 "2019-11-14T15:12:51Z")

</div>

Are you hitting this problem?

> [@FailureHandling Change breaks legacy code (was STOP\_ON\_FAILURE does not stop a test when verifyElementPresent returns false)](http://forum.katalon.com/t/stop-on-failure-does-not-stop-a-test-when-verifyelementpresent-returns-false/36075):
>
> I wonder why Katalon test case turns green although there is a warning “Test object with id ‘Object Repository/’ does not exist”. I expect a test case to stop once a warning event occurs. Windows 8.1/Katalon 7.0.8 I use STOP\_ON\_FAILURE setting by default.

---

<div class="post-metadata">

**Author:** ![Chriscph1](https://avatars.discourse-cdn.com/v4/letter/c/6bbea6/32.png) [@Chriscph1](https://forum.katalon.com/u/Chriscph1)\
**Post date:** [November 14, 2019, 7:21pm UTC](https://forum.katalon.com/t/verify-element-not-present-passing-when-element-is-present/36327/3 "2019-11-14T19:21:08Z")

</div>

Yeah that’s exactly what I’m running into thank you for providing the link. It looks like the Katalon team is working on it. I see some people are asserting the keyword for now, the problem is that the tests are much less readable in manual mode with the assert statement. I’m going to leave my tests alone and hope that the functionality is fixed within the next week or two.

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [November 14, 2019, 7:22pm UTC](https://forum.katalon.com/t/verify-element-not-present-passing-when-element-is-present/36327/4 "2019-11-14T19:22:01Z")

</div>

Closed on November 14, 2019, 7:22pm UTC


