# Dealing with False positive

**URL:** <https://forum.katalon.com/t/dealing-with-false-positive/82065>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [January 5, 2023, 3:35am UTC](https://forum.katalon.com/t/dealing-with-false-positive/82065 "2023-01-05T03:35:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Dave\_Evers](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dave_evers/32/435_2.png) [@Dave\_Evers](https://forum.katalon.com/u/Dave_Evers)\
**Post date:** [January 9, 2023, 7:26pm UTC](https://forum.katalon.com/t/dealing-with-false-positive/82065/4 "2023-01-09T19:26:27Z")

</div>

Hi @anishas,

You could try clicking on the element(s) using a Javascript Keyword instead (see this post):

> [@Unable to click on Object, Other Element Would receive click](http://forum.katalon.com/t/unable-to-click-on-object-other-element-would-receive-click/6093/5):
>
> Hi there, You can try to click on the element using Javascript instead: - Create a custom keyword and insert script to click on the element using Javascript: [https://docs.katalon.com/display/KD/Define+custom+keywords](https://docs.katalon.com/display/KD/Define+custom+keywords) Your custom keyword will be like this: import org.openqa.selenium.WebDriver as WebDriver import org.openqa.selenium.WebElement as WebElement import org.openqa.selenium.interactions.Actions as Actions import com.kms.katalon.core.webui.common.WebUiCommonHelper as WebUiCommonHe…

Or you could try this:  
When using ‘WebUI.click’ or ‘WebUI.enhancedClick’ you should first use ‘WebUI.waitForElementPresent’ , ‘WebUI.waitForElementVisible’ or WebUI.delay()

For example:

```auto
WebUI.waitForElementPresent(findTestObject('ObjectPath/SubmitBtn'), 30) //waits up-to 30 seconds
WebUI.click(findTestObject(ObjectPath/SubmitBtn))

```

Or:

```auto
WebUI.waitForElementVisible(findTestObject('ObjectPath/SubmitBtn'), 30)
WebUI.enhancedClick(findTestObject(ObjectPath/SubmitBtn))

```

Or:

```auto
WebUI.delay(5) //Not the best practice but when all else fails.
WebUI.click(findTestObject(ObjectPath/SubmitBtn))

```

```auto

```

---

_[View the full topic](https://forum.katalon.com/t/dealing-with-false-positive/82065)._
