# Screenshot issue with verifyElement\* on returning false

**URL:** <https://forum.katalon.com/t/screenshot-issue-with-verifyelement-on-returning-false/18242>\
**Category:** Web Testing\
**Tags:** web-testing, katalon-studio\
**Created:** [January 24, 2019, 4:07pm UTC](https://forum.katalon.com/t/screenshot-issue-with-verifyelement-on-returning-false/18242 "2019-01-24T16:07:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashwin\_N1](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Ashwin\_N1](https://forum.katalon.com/u/Ashwin_N1)\
**Post date:** [January 24, 2019, 4:07pm UTC](https://forum.katalon.com/t/screenshot-issue-with-verifyelement-on-returning-false/18242/1 "2019-01-24T16:07:18Z")

</div>

When WebUI.verifyElementvisible/present(TestObject, FailureHandling.OPTIONAL) returns false, it takes screenshot automatically. Is this normal behavior?

In most of the scenario, we want to take a screenshot only when the steps got failed. As FailureHandling.OPTIONAL is used to continue the script execution, it does not make sense to take a screenshot automatically.For example, if i m using WebUI.verifyElementvisible/present(TestObject, FailureHandling.OPTIONAL) 50 times in test case and it returns false 30 times, it will take screenshot 30 times which leads to unnecessary screenshots.

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 7:02am UTC](https://forum.katalon.com/t/screenshot-issue-with-verifyelement-on-returning-false/18242/2 "2022-08-08T07:02:17Z")

</div>

Archived on August 8, 2022, 7:02am UTC


