# Check if element not present in Windows

**URL:** <https://forum.katalon.com/t/check-if-element-not-present-in-windows/44147>\
**Category:** Desktop Testing\
**Tags:** desktop, windows, katalon-studio\
**Created:** [June 3, 2020, 11:16am UTC](https://forum.katalon.com/t/check-if-element-not-present-in-windows/44147 "2020-06-03T11:16:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![piotr.kochanek.2](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/piotr.kochanek.2/32/16104_2.png) [@piotr.kochanek.2](https://forum.katalon.com/u/piotr.kochanek.2)\
**Post date:** [June 3, 2020, 11:16am UTC](https://forum.katalon.com/t/check-if-element-not-present-in-windows/44147/1 "2020-06-03T11:16:12Z")

</div>

Hello  
Is there a way to check if the element is **not** present in Windows App?  
I tried:  
Windows.findElement(findWindowsObject('Object Repository/folder1/folder2/tbSimple), FailureHandling.OPTIONAL)  
but it still ends the test and throws:

2020-06-03 13:12:23.083 ERROR c.k.k.core.keyword.internal.KeywordMain - ❌ An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information)  
Command duration or timeout: 0 milliseconds  
For documentation on this error, please visit: [Exceptions | Selenium](https://www.seleniumhq.org/exceptions/no_such_element.html)  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
Driver info: io.appium.java\_client.windows.WindowsDriver  
Capabilities {appTopLevelWindow: f1230, javascriptEnabled: true, ms:waitForAppLaunch: 30, platform: WINDOWS, platformName: WINDOWS}  
Session ID: 5B672B36-CF8A-4A91-A763-C663B7161665  
\*\*\* Element info: {Using=xpath, value=//Window/Window[1]/Pane[1]/Pane[1]/Group[1]/Edit[4]} (Root cause: org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information)  
Command duration or timeout: 0 milliseconds
