Element click intercepted

Hello Friends

I unable click on Object . Anyone help me to read Error & how to fix it please
This is my Log :

Reason: com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/New_Function_Excel_from_Category1/button_Fonctions’ at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64) at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26) at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:86) at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:67) at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56) at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:616) at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$4.call(Unknown Source) at New_Function_Excel_from_Category.run(New_Function_Excel_from_Category:39) at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194) at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119) at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337) at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328) at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307) at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299) at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233) at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:133) at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:116) at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:83) at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157) at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source) at TempTestSuite1564777865219.run(TempTestSuite1564777865219.groovy:35) Caused by: org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <button id=“rigthmenu:idTopMenuItem:2:menuButton” name=“rigthmenu:idTopMenuItem:2:menuButton” class=“ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only btnMainMenuItem ui-draggable ui-draggable-handle” onclick=“PrimeFaces.ab({s:&quot;rigthmenu:idTopMenuItem:2:menuButton&quot;,p:&quot;rigthmenu:idTopMenuItem:2:menuButton&quot;,u:&quot;tabscontent:contentHotKey tabscontent:dockStyles tabscontent:tabView tabscontent:titleTabAndHeaderPanelStyle tabscontent:btnTreePanelDynamic&quot;,onsu:function(data,status,xhr){insertNewTabAjax(‘tabscontent:tabView’,data);;},onco:function(xhr,status,args){setUpContentmenu();;}});return false;” type=“submit” role=“button” aria-disabled=“false”>…</button> is not clickable at point (442, 28). Other element would receive the click: <input id=“formSearchTop:j_idt277” name=“formSearchTop:j_idt277” type=“text” value="" placeholder="" onchange=“PrimeFaces.ab({s:&quot;formSearchTop:j_idt277&quot;,e:&quot;change&quot;,p:&quot;formSearchTop:j_idt277&quot;});” onblur=“PrimeFaces.ab({s:&quot;formSearchTop:j_idt277&quot;,e:&quot;blur&quot;,p:&quot;formSearchTop:j_idt277&quot;});” class=“ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all editextSearch” role=“textbox” aria-disabled=“false” aria-readonly=“false”> (Session info: headless chrome=75.0.3770.142) (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Linux 4.9.0-9-amd64 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’ System info: host: ‘3d9300d0a8df’, ip: ‘172.80.4.2’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘4.9.0-9-amd64’, java.version: ‘1.8.0_212’ Driver info: com.kms.katalon.selenium.driver.CChromeDriver Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 74.0.3729.6 (255758eccf3d24…, userDataDir: /tmp/.com.google.Chrome.AcGey5}, cssSelectorsEnabled: true, databaseEnabled: false, goog:chromeOptions: {debuggerAddress: localhost:35451}, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: Proxy(), rotatable: false, setWindowRect: true, strictFileInteractability: false, takesHeapSnapshot: true, takesScreenshot: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unexpectedAlertBehaviour: ignore, unhandledPromptBehavior: ignore, version: 75.0.3770.142, webStorageEnabled: true} Session ID: c4f34c6744683737c1ff2c9d1de9336f at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166) at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40) at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80) at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) at com.kms.katalon.selenium.driver.CChromeDriver.execute(CChromeDriver.java:20) at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285) at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:84) at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1.doCall(ClickKeyword.groovy:79) at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1.call(ClickKeyword.groovy) at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20) … 19 more

The button you’re trying to click is not where your code thinks it should be. You could try waiting until it is visible.

Also, I notice you’re running headless – I’ll defer to @Mate_Mrse on that.

1 Like