Unable to click on the button in the drop down class

Hi, I am struggling with one of the test objects in my script. I used Web Spy attributes to define this object like it shown in the screen shots:


It looks like the test object is presented in the screen, but not clickable. I tried SelectLabel and SelectValue options, it did not help. As well I tried to use contains option for text attribute instead of equal. Does not work either.
Here is the script:

and the log:

Any idea what should I do differently to make this working?

Please post the entire error message as TEXT (not a screenshot).

This is all I got in the Console view:
2021-06-09 18:51:37.773 INFO c.k.katalon.core.main.TestSuiteExecutor - START Test Suites/Dashboard/TestSuit1
2021-06-09 18:51:37.873 INFO c.k.katalon.core.main.TestSuiteExecutor - hostName = ipotashnik - DT03976.obsglobal.com
2021-06-09 18:51:37.874 INFO c.k.katalon.core.main.TestSuiteExecutor - os = Windows 10 64bit
2021-06-09 18:51:37.875 INFO c.k.katalon.core.main.TestSuiteExecutor - hostAddress = 10.0.0.30
2021-06-09 18:51:37.876 INFO c.k.katalon.core.main.TestSuiteExecutor - katalonVersion = 8.0.1.208
2021-06-09 18:51:39.822 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2021-06-09 18:51:39.822 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/Dashboard/Logins/TC-Login as administrator
2021-06-09 18:51:40.632 DEBUG testcase.TC-Login as administrator - 1: dashboard.login.DashboardLogin.Login()
2021-06-09 18:51:43.400 INFO c.k.k.core.webui.driver.DriverFactory - Starting ‘Chrome’ driver
Jun 09, 2021 6:51:43 PM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using new ChromeOptions() is preferred to DesiredCapabilities.chrome()
2021-06-09 18:51:43.432 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘args’, ‘[–incognito]’]
2021-06-09 18:51:43.601 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 milliseconds
Starting ChromeDriver 90.0.4430.24 (4c6d850f087da467d926e8eddb76550aed655991-refs/branch-heads/4430@{#429}) on port 13028
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Jun 09, 2021 6:51:46 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
2021-06-09 18:51:46.620 INFO c.k.k.core.webui.driver.DriverFactory - sessionId = 9f380f08ecc78b389cbc2e6077efe9c5
2021-06-09 18:51:46.644 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 90.0.4430.212
2021-06-09 18:51:46.645 INFO c.k.k.core.webui.driver.DriverFactory - platform = Windows 10
2021-06-09 18:51:46.645 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.141.59
2021-06-09 18:51:46.647 INFO c.k.k.core.webui.driver.DriverFactory - proxyInformation = ProxyInformation { proxyOption=NO_PROXY, proxyServerType=HTTP, username=, password=********, proxyServerAddress=, proxyServerPort=0, executionList="", isApplyToDesiredCapabilities=true }
2021-06-09 18:51:51.555 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - dashboard.login.DashboardLogin.Login is PASSED
2021-06-09 18:51:51.557 DEBUG testcase.TC-Login as administrator - 2: waitForPageLoad(TimeOut)
2021-06-09 18:51:51.604 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/Dashboard/Logins/TC-Login as administrator
2021-06-09 18:51:51.629 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2021-06-09 18:51:51.629 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/Dashboard/Navigate Side Menu Options/TC-Navigate to Menu Builder of Specific Location
2021-06-09 18:51:53.092 DEBUG ate to Menu Builder of Specific Location - 1: click(findTestObject(“Dashboard/SideMenuOptions/Menu_Builder”))
2021-06-09 18:51:55.256 DEBUG ate to Menu Builder of Specific Location - 2: waitForPageLoad(TimeOut)
2021-06-09 18:51:55.348 DEBUG ate to Menu Builder of Specific Location - 3: dashboard.login.SelectLocation.SearchAndClickLocation()
2021-06-09 18:51:58.166 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - dashboard.login.SelectLocation.SearchAndClickLocation is PASSED
2021-06-09 18:51:58.166 DEBUG ate to Menu Builder of Specific Location - 4: waitForPageLoad(TimeOut)
2021-06-09 18:51:58.189 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/Dashboard/Navigate Side Menu Options/TC-Navigate to Menu Builder of Specific Location
2021-06-09 18:51:58.198 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2021-06-09 18:51:58.198 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/Dashboard/MenuBuilder/Navigate Top Menu/TC - Navigate to Items and Mods
2021-06-09 18:51:59.296 DEBUG t.TC - Navigate to Items and Mods - 1: click(findTestObject(“Dashboard/MenuBuilder/TopMenu/Items_And_Mods”))
2021-06-09 18:51:59.660 DEBUG t.TC - Navigate to Items and Mods - 2: waitForPageLoad(TimeOut)
2021-06-09 18:51:59.694 DEBUG t.TC - Navigate to Items and Mods - 3: if (MenuSync)
2021-06-09 18:51:59.695 DEBUG t.TC - Navigate to Items and Mods - 4: waitForElementClickable(findTestObject(“Object Repository/Dashboard/MenuBuilder/ItemsAndModsPage/New_Item_Button”), TimeOut)
2021-06-09 18:52:00.116 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/Dashboard/MenuBuilder/Navigate Top Menu/TC - Navigate to Items and Mods
2021-06-09 18:52:00.125 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2021-06-09 18:52:00.125 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/Dashboard/MenuBuilder/Add Items/TC - AddNewItemWithKeyword
2021-06-09 18:52:00.852 DEBUG testcase.TC - AddNewItemWithKeyword - 1: for ([i = 1, i <= findTestData(“Dashboard/AddNewItemData”).getRowNumbers(), (i++)])
2021-06-09 18:52:00.980 DEBUG testcase.TC - AddNewItemWithKeyword - 1: dashboard.menu.builder.AddItemOrModifier.AddNewItemOrModifier(i)
******* Before click on New Item Button1
****** After click on New Item Button
****** Before click on New Menu Item Button
****** New Menu Item Button is presented
****** New Menu Item Button mouse over
2021-06-09 18:52:02.408 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Unable to click on object ‘Object Repository/Dashboard/MenuBuilder/ItemsAndModsPage/New_Menu_Item_Button’ (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/Dashboard/MenuBuilder/ItemsAndModsPage/New_Menu_Item_Button’
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:75)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:42)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:607)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$6.call(Unknown Source)
at dashboard.menu.builder.AddItemOrModifier.AddNewItemOrModifier(AddItemOrModifier.groovy:52)
at dashboard.menu.builder.AddItemOrModifier.invokeMethod(AddItemOrModifier.groovy)
at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:50)
at TC - AddNewItemWithKeyword.run(TC - AddNewItemWithKeyword:24)
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:398)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:389)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:368)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:360)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:255)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:203)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:152)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:95)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1623282687752.run(TempTestSuite1623282687752.groovy:39)
Caused by: org.openqa.selenium.ElementNotInteractableException: element not interactable
(Session info: chrome=90.0.4430.212)
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘DT03976’, ip: ‘10.0.0.30’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_282’
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 90.0.4430.212, chrome: {chromedriverVersion: 90.0.4430.24 (4c6d850f087da…, userDataDir: C:\Users\IPOTAS~1\AppData\L…}, goog:chromeOptions: {debuggerAddress: localhost:64198}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
Session ID: 9f380f08ecc78b389cbc2e6077efe9c5
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
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:19)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:84)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.lambda$new$0(EventFiringWebDriver.java:404)
at com.sun.proxy.$Proxy11.click(Unknown Source)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.click(EventFiringWebDriver.java:417)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1.doCall(ClickKeyword.groovy:68)
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)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:75)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:42)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:607)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$6.call(Unknown Source)
at dashboard.menu.builder.AddItemOrModifier.AddNewItemOrModifier(AddItemOrModifier.groovy:52)
at dashboard.menu.builder.AddItemOrModifier.invokeMethod(AddItemOrModifier.groovy)
at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:50)
at Script1623163247124.run(Script1623163247124.groovy:24)
… 13 more
)
2021-06-09 18:52:02.415 ERROR k.k.c.m.CustomKeywordDelegatingMetaClass - :x: Unable to click on object ‘Object Repository/Dashboard/MenuBuilder/ItemsAndModsPage/New_Menu_Item_Button’
2021-06-09 18:52:02.419 ERROR c.k.katalon.core.main.TestCaseExecutor - :x: Test Cases/Dashboard/MenuBuilder/Add Items/TC - AddNewItemWithKeyword FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/Dashboard/MenuBuilder/ItemsAndModsPage/New_Menu_Item_Button’
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:75)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:42)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:607)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$6.call(Unknown Source)
at dashboard.menu.builder.AddItemOrModifier.AddNewItemOrModifier(AddItemOrModifier.groovy:52)
at dashboard.menu.builder.AddItemOrModifier.invokeMethod(AddItemOrModifier.groovy)
at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:50)
at TC - AddNewItemWithKeyword.run(TC - AddNewItemWithKeyword:24)
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:398)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:389)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:368)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:360)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:255)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:203)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:152)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:95)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1623282687752.run(TempTestSuite1623282687752.groovy:39)
Caused by: org.openqa.selenium.ElementNotInteractableException: element not interactable
(Session info: chrome=90.0.4430.212)
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘DT03976’, ip: ‘10.0.0.30’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_282’
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 90.0.4430.212, chrome: {chromedriverVersion: 90.0.4430.24 (4c6d850f087da…, userDataDir: C:\Users\IPOTAS~1\AppData\L…}, goog:chromeOptions: {debuggerAddress: localhost:64198}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
Session ID: 9f380f08ecc78b389cbc2e6077efe9c5
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
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:19)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:84)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.lambda$new$0(EventFiringWebDriver.java:404)
at com.sun.proxy.$Proxy11.click(Unknown Source)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.click(EventFiringWebDriver.java:417)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1.doCall(ClickKeyword.groovy:68)
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)
… 22 more

2021-06-09 18:52:02.424 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/Dashboard/MenuBuilder/Add Items/TC - AddNewItemWithKeyword
2021-06-09 18:52:02.689 INFO com.kms.katalon.core.util.KeywordUtil - Start generating HTML report folder at: C:\Users\ipotashnik\Desktop\Projects\Ready\Automation Tests\Scripts\Dashboard_Regression\Reports\20210609_185126\Dashboard\TestSuit1\20210609_185127…
2021-06-09 18:52:02.780 INFO com.kms.katalon.core.util.KeywordUtil - HTML report generated
2021-06-09 18:52:02.781 INFO com.kms.katalon.core.util.KeywordUtil - Start generating CSV report folder at: C:\Users\ipotashnik\Desktop\Projects\Ready\Automation Tests\Scripts\Dashboard_Regression\Reports\20210609_185126\Dashboard\TestSuit1\20210609_185127…
2021-06-09 18:52:02.818 INFO com.kms.katalon.core.util.KeywordUtil - CSV report generated
2021-06-09 18:52:03.791 INFO c.k.katalon.core.main.TestSuiteExecutor - --------------------
2021-06-09 18:52:03.792 INFO c.k.katalon.core.main.TestSuiteExecutor - END Test Suites/Dashboard/TestSuit1
2021-06-09 18:52:03.792 INFO c.k.katalon.core.main.TestSuiteExecutor - ====================

The element is not “ready”. Try waiting for it…

https://docs.katalon.com/katalon-studio/docs/webui-wait-for-element-clickable.html

I tried to use WaitForElementClickable. It does not help. I think there is something with the definitions of this test object. For some reason it is not recognized as clickable.
This object is not exactly drop down. To get this object displayed, I have to click on New Item Button. After I click on New Item button, 2 new options (buttons) appear. One of the Add New Menu Item button.

image

When I define this element using relative xpath (//*[@id=“root”]/div/div/div[2]/div[2]/div/div[2]/div[1]/div[4]/div[2]/div[2]/div/div/button[1]), the element is clickable. However, I would like to have absolute definition of elements and not the relative.

Have you tried changing the selection to text and class name? i.e drop-down… or just using text =

Originally, I used text =‘New Menu Item’ with class = button.
The object can be found, but it’s not clickable for some reason.

I was able to identify an object that contains both buttons:
//*[(text() = ‘New Menu ItemNew Modifier’ or . = ‘New Menu ItemNew Modifier’)]

I am wondering if I can somehow combine attributes of the ‘New Menu ItemNew Modifier’ and ‘New Menu Item’ in one?

//*[@type = ‘button’ and (text() = ‘New Menu Item’ or . = ‘New Menu Item’)]

try adding a delay of few seconds… sometimes it’s not ready in the UI. I’ve had those issues in the past.