# Dropdown Elements not clicking

**URL:** <https://forum.katalon.com/t/dropdown-elements-not-clicking/31231>\
**Category:** Web Testing\
**Tags:** web-testing, katalon-studio\
**Created:** [August 8, 2019, 7:15pm UTC](https://forum.katalon.com/t/dropdown-elements-not-clicking/31231 "2019-08-08T19:15:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vellj123](https://avatars.discourse-cdn.com/v4/letter/v/a6a055/32.png) [@vellj123](https://forum.katalon.com/u/vellj123)\
**Post date:** [August 8, 2019, 7:15pm UTC](https://forum.katalon.com/t/dropdown-elements-not-clicking/31231/1 "2019-08-08T19:15:56Z")

</div>

Good Afternoon,

I am wanting to click a button from a dropdown tab. I have the Recording of me clicking 2 different IDs, but neither of them actually click the button. Any help would be appreciated. I will post my script and error at the bottom.

```
//DropDown Menu
WebUI.click(findTestObject('Object Repository/Emp/Page/DropdownMenu'))

//Support Button 1
WebUI.click(findTestObject('Object Repository/Emp/Page/div_Support'))

//Support Button 2
//not_run: WebUI.click(findTestObject('Object Repository/Emp/Page/span_Support'))

```

**Error**  
Reason:  
com.kms.katalon.core.exception.StepFailedException: Unable to verify object is present  
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.VerifyElementPresentKeyword.verifyElementPresent(VerifyElementPresentKeyword.groovy:92)

---

<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:** [August 8, 2019, 7:48pm UTC](https://forum.katalon.com/t/dropdown-elements-not-clicking/31231/2 "2019-08-08T19:48:33Z")

</div>

> [@vellj123](#):
>
> StepFailedException: **Unable to verify object is present**

One of those test Objects is not found in the DOM.

Check the definition of the objects (check the XPath).

Make sure you are waiting long enough for the browser to display the elements.

---

<div class="post-metadata">

**Author:** ![Arnel](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/arnel/32/6360_2.png) [@Arnel](https://forum.katalon.com/u/Arnel)\
**Post date:** [August 10, 2019, 2:34pm UTC](https://forum.katalon.com/t/dropdown-elements-not-clicking/31231/3 "2019-08-10T14:34:18Z")

</div>

Hii Vellj,

Try this approach…

> [@Working on Lists or Dropdown](http://forum.katalon.com/t/working-on-lists-or-dropdown/29499):
>
> Hi there Guys, LONG POST AHEAD! Take time to read. . . wink Ok so, I’ll be posting this since I notice this last few weeks, some or many of the posted issues here in the forum are regarding or they are dealing with lists or dropdown. So I’ll be sharing you some idea that might help you because when dealing with lists or dropdown I always use this approach and it is very effective. Its not quite easy working on lists or dropdown, it requires a lot of observations and tries but when you get …

Hope that helps. . . 🙂

---

<div class="post-metadata">

**Author:** ![vellj123](https://avatars.discourse-cdn.com/v4/letter/v/a6a055/32.png) [@vellj123](https://forum.katalon.com/u/vellj123)\
**Post date:** [August 12, 2019, 3:01pm UTC](https://forum.katalon.com/t/dropdown-elements-not-clicking/31231/4 "2019-08-12T15:01:23Z")

</div>

Hello @Arnel I am following your steps but I have a question.

Questions:  
-Sample 1:

1. How do I get to that “Selected Locator” tab? I opened the WebRecorder, and was about to add a item however Im not sure what Keyword I used in the items category. Can you shed more light around that area?

Answer: Nevermind I found the Object Repo box

**NewQuestion**  
2. I am trying to keep up with your instructions but now i am at a new halt. You used the `attribute` section, but you copied a class. And I got the dropdown class information, but I got a error message. I will post my script and code at the bottom.

```
//Verify that Request off is the main widget on the screen
//WebUI.verifyElementPresent(findTestObject('Page/InsideRequestBox'), 5)
WebUI.delay(5)
//Nofitication Bar
//not_run: WebUI.verifyElementNotVisible(findTestObject('Object Repository/Employee001/Page/NotficationBar'))
//WebUI.delay(5)

//DropDown Menu
WebUI.click(findTestObject('Object Repository/Employee001/Page/DropdownMenu'))
WebUI.delay(5)

//Inspect the dropdown menu
java.util.List<WebElement> list = WebUiCommonHelper.findTestObject('Object Repository/Employee001/Page/DropdownListReadOut')
println list.text
list[1].click()

```

**Error**  
08-12-2019 11:44:57 AM Test Cases/Employee/EmployeeOne

```
Elapsed time: 28.080s

Test Cases/Employee/EmployeeOne FAILED.
Reason:
groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.webui.common.WebUiCommonHelper.findTestObject() is applicable for argument types: (java.lang.String) values: [Object Repository/Employee001/Page/DropdownListReadOut]
	at EmployeeOne.run(EmployeeOne:56)
	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)
```

---

<div class="post-metadata">

**Author:** ![Brandon\_Hein](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/brandon_hein/32/1092_2.png) [@Brandon\_Hein](https://forum.katalon.com/u/Brandon_Hein)\
**Post date:** [August 12, 2019, 6:30pm UTC](https://forum.katalon.com/t/dropdown-elements-not-clicking/31231/5 "2019-08-12T18:30:02Z")

</div>

> [@vellj123](#):
>
> No signature of method: static com.kms.katalon.core.webui.common.WebUiCommonHelper.findTestObject()

This is not a method in the WebUiCommonHelper class. Instead of this:

`java.util.List<WebElement> list = WebUiCommonHelper.findTestObject('Object Repository/Employee001/Page/DropdownListReadOut')`

try:

`List<WebElement> list = WebUiCommonHelper.findWebElements(findTestObject('Employee001/Page/DropdownListReadOut'))`

---

<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:42am UTC](https://forum.katalon.com/t/dropdown-elements-not-clicking/31231/6 "2022-08-08T07:42:53Z")

</div>

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


