# Unable to click object error message

**URL:** <https://forum.katalon.com/t/unable-to-click-object-error-message/14291>\
**Category:** Web Testing\
**Tags:** web-testing, katalon-studio\
**Created:** [November 15, 2018, 5:04pm UTC](https://forum.katalon.com/t/unable-to-click-object-error-message/14291 "2018-11-15T17:04:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pablo\_Salinas](https://avatars.discourse-cdn.com/v4/letter/p/ba8739/32.png) [@Pablo\_Salinas](https://forum.katalon.com/u/Pablo_Salinas)\
**Post date:** [November 15, 2018, 5:04pm UTC](https://forum.katalon.com/t/unable-to-click-object-error-message/14291/1 "2018-11-15T17:04:49Z")

</div>

I am using Katalon with Ellucian Banner and navigating to a form. When the katalon test gets to the initial page, and I need the process to click X to close that page, I get the following error.

Test Cases/SOADEST FAILED because (of) (Stack trace: com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/Page\_Application Navigator/Page\_Application Navigator/i\_Compact\_ba ba-close’ (Root cause: org.openqa.selenium.WebDriverException: unknown error: Element is not clickable at point (21, 9). Other element would receive the click:

(Session info: chrome=70.0.3538.77)

I have tried Xpath as well as attributes.

 ![](https://dub1.discourse-cdn.com/katalon/uploads/default/original/1X/fa488eb5f2bac6d20b1ffcf14ffb26693f4ce540.jpeg) ![](https://dub1.discourse-cdn.com/katalon/uploads/default/original/1X/5bafdca4f374c2038a257bb56f1f2d9ba0dfe29d.jpeg)

[atributes.jpg](https://forum.katalon.com/uploads/short-url/zI6OUVCi4EdsmModKrMBKCcsNKU.jpeg)

[xpath2.jpg](https://forum.katalon.com/uploads/short-url/d56eoucuDjmzSG0CARBAtKZ6XPT.jpeg)

---

<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 15, 2018, 7:56pm UTC](https://forum.katalon.com/t/unable-to-click-object-error-message/14291/2 "2018-11-15T19:56:33Z")

</div>

It’s basically telling you that, at the point the click would be issued, something else would receive the click.

Do the elements move on the page? Has something hidden the html i element?

A screen shot of the page would help.

---

<div class="post-metadata">

**Author:** ![Pablo\_Salinas](https://avatars.discourse-cdn.com/v4/letter/p/ba8739/32.png) [@Pablo\_Salinas](https://forum.katalon.com/u/Pablo_Salinas)\
**Post date:** [November 16, 2018, 9:35pm UTC](https://forum.katalon.com/t/unable-to-click-object-error-message/14291/3 "2018-11-16T21:35:06Z")

</div>

Below is the page. If I use the recorded test steps\screen capture tool, the error will be that the xpath is null, if I capture the close as a single object and call that object from my (recorded) test case, then the error is that the item is not clickable. I have also tried using the xpath provided by the xpath tool in chrome.

 ![](https://dub1.discourse-cdn.com/katalon/uploads/default/original/1X/38fe616e74e365fb2243e82a1f347c0f5b02e8c1.jpeg)

[soadestclose.jpg](https://forum.katalon.com/uploads/short-url/88bKgA66rwVQIjX1cqpnLEUYT4d.jpeg)

---

<div class="post-metadata">

**Author:** ![Pablo\_Salinas](https://avatars.discourse-cdn.com/v4/letter/p/ba8739/32.png) [@Pablo\_Salinas](https://forum.katalon.com/u/Pablo_Salinas)\
**Post date:** [November 16, 2018, 9:39pm UTC](https://forum.katalon.com/t/unable-to-click-object-error-message/14291/4 "2018-11-16T21:39:41Z")

</div>

Below is the error I receive if I use the object ba-close recorded as a unit test run.

‘Page\_Application Navigator/i\_Compact\_ba ba-close’ has parent object(s)

11-16-2018 03:29:41 PM - [INFO] - Switching to iframe: ‘Page\_Application Navigator/iframe\_Keyboard Shortcuts\_bann’

11-16-2018 03:29:41 PM - [INFO] - Checking timeout

11-16-2018 03:29:42 PM - [FAILED] - Unable to click on object ‘Page\_Application Navigator/i\_Compact\_ba ba-close’ (Root cause: java.lang.IllegalArgumentException: Cannot find elements when the XPath expression is null.)

11-16-2018 03:29:42 PM - [END] - End action : click

11-16-2018 03:29:42 PM - [FAILED] - Verification FAILED because (of) (Stack trace: com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Page\_Application Navigator/i\_Compact\_ba ba-close’ (Root cause: java.lang.IllegalArgumentException: Cannot find elements when the XPath expression is null.)

at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:36)

at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:65)

at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:27)

at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:86)

---

<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 16, 2018, 10:51pm UTC](https://forum.katalon.com/t/unable-to-click-object-error-message/14291/5 "2018-11-16T22:51:11Z")

</div>

Thanks for the extra info, Pablo. It’s obviously hard to discern the problem working remote so I tried to bring the site up in a browser but it’s not loading, it just times out.

In the mean time, I’m guessing that the iframe is making a mess of the target Test Object. If I could get to the site (or if you can most a bunch of the HTML surrounding the close button) then maybe we could get a little further.

@Andrej Podhajský, @4280-kazurayam

We could also do with an xpath guru taking a look (I’m certainly not an xpath guy!) B)

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [November 17, 2018, 11:49am UTC](https://forum.katalon.com/t/unable-to-click-object-error-message/14291/6 "2018-11-17T11:49:13Z")

</div>

Pablo,

```auto
(Root cause: java.lang.IllegalArgumentException: Cannot find elements when the XPath expression is null.)

```

I believe that this message is due to a small bug in Katalon Studio since version 5.7.0.

Please have a look at the following discussion:

> [@Cannot find elements when XPath expression is null](http://forum.katalon.com/t/cannot-find-elements-when-xpath-expression-is-null/13840):
>
> I have made a project on GitHub, where you can reproduce the insident. [GitHub - kazurayam/Cannot\_find\_elements\_when\_XPath\_expression\_is\_null](https://github.com/kazurayam/Cannot_find_elements_when_XPath_expression_is_null) OS: Mac OS 10.13.6 High Siearra Katalon Studio: version 5.7.1 How to reporoduce the insident git clone [this project](https://github.com/kazurayam/Cannot_find_elements_when_XPath_expression_is_null) or download ZIP form the [relases](https://github.com/kazurayam/Cannot_find_elements_when_XPath_expression_is_null/releases) page. open the project with Katalon Studio v5.7.0 or higher. open Test Caset/TC1 and execute it. The source is as follows: import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject …

---

<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:49am UTC](https://forum.katalon.com/t/unable-to-click-object-error-message/14291/7 "2022-08-08T07:49:21Z")

</div>

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


