Unable to click object error message

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.

atributes.jpg

xpath2.jpg

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.

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.

soadestclose.jpg

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)

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)

Pablo,

(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: