# Select item from List menu

**URL:** <https://forum.katalon.com/t/select-item-from-list-menu/49131>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [November 11, 2020, 2:26pm UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131 "2020-11-11T14:26:20Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![luka.samac](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@luka.samac](https://forum.katalon.com/u/luka.samac)\
**Post date:** [November 11, 2020, 2:26pm UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/1 "2020-11-11T14:26:20Z")

</div>

Hi guys,

Does anybody knows how to select list item Ticket from this menu?

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/a/a6b902efd80af644315c6e08c5d104c2d501b331.png)

I was recording and spying x times to see how program recognizes this objects, and he recognizes:  
1.) div\_Please select  
2.) li\_Ticket  
I’ve checked xpath position of both this objects and they should be correct but when I try to execute test case, on video can be seen that I’ve clicked on Please select and then Tickets and Packages choices appeared but Tickets cannot be selected and I don’t know what item options to choose beside Click.  
Anybody have clue how to figure this?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Dave\_Evers](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dave_evers/32/435_2.png) [@Dave\_Evers](https://forum.katalon.com/u/Dave_Evers)\
**Post date:** [November 12, 2020, 12:54am UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/2 "2020-11-12T00:54:56Z")

</div>

Please follow this link so folks can help you.

> [@\[TIP\] How To Help Us Help You!](http://forum.katalon.com/t/tip-how-to-help-us-help-you/12919):
>
> My test is BROKEN! NOTHING WORKS! HELP ME! Relax. We get it. We really do. There are some pretty smart and clever people on this forum, but you must realize, they are not magicians or wizards or gods. They cannot see your code, they can’t see your errors and they don’t even know what your AUT is meant to do even though it might seem perfectly obvious to you. So please relax and follow the advice below, before you start writing your post. The advice below will tell you the exact information …

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [November 12, 2020, 5:49am UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/3 "2020-11-12T05:49:52Z")

</div>

You have the Category as Windows Desktop App Testing but your elements are having names like **div\_Please select** and **li\_Ticket**. These seems to be web elements rather than desktop.

Also, is the Tickets menu option grayed out? That would generally mean that it is not available as an option to be selected at this time.

---

<div class="post-metadata">

**Author:** ![luka.samac](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@luka.samac](https://forum.katalon.com/u/luka.samac)\
**Post date:** [November 12, 2020, 7:43am UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/4 "2020-11-12T07:43:54Z")

</div>

Hi, sorry for not presenting all needed data.

So, here are the steps:

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/5/5de47c54d4abe16ed430cec316348f9fe3acf465.png)

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/5/54d31ea5abb24b04ec1d879b539ce9b7b806732c.png)

Here is inspected objected span\_please\_select

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/c/cc70e43469abc70202948b6666a400de8a82ac8f.png)

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/2/243eec45b80842764f72296a7efe996cdfaf1e34.png)

Here is the xpath position (li\_tickets):

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/a/a5dabc8936c7241cb172b944d90e7bbecaaf6517.png)

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/d/d284ffb44d2a12221d6eca78b18049a34c31e6e2.png)

---

<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 12, 2020, 9:22am UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/5 "2020-11-12T09:22:27Z")

</div>

I noticed that the `<li>` element with text “Tickets” has `area-selected` attribute of `false`.

`<li ... area-selected="false">Tickets</li>`

I am not sure, but I guess `area-selected` needs to be toggled to `true` before clicking the element. So it would be worth trying to move the cursor over the `<li>` element before clicking it. So …

```auto
WebUI.mouseOver(findTestObject("li_tickets"))
WebUI.click(findTestObject("li_tickets"))

```

---

<div class="post-metadata">

**Author:** ![luka.samac](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@luka.samac](https://forum.katalon.com/u/luka.samac)\
**Post date:** [November 12, 2020, 12:21pm UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/6 "2020-11-12T12:21:04Z")

</div>

Unfortunately, result is still the same, this li\_tickets can’t be recognized and selected ☹

---

<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 12, 2020, 12:37pm UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/7 "2020-11-12T12:37:44Z")

</div>

How about ensuring the element present before clicking it?

```auto
WebUI.verifyElementPresent(findTestObject("li_tickets"), 10)
WebUI.click(findTestObject("li_tickets"))

```

In the console Log, what error do you find?

---

<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 12, 2020, 12:42pm UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/8 "2020-11-12T12:42:26Z")

</div>

You possibly want to try the Enhanced Click:

[https://docs.katalon.com/katalon-studio/docs/webui-enhanced-click.html](https://docs.katalon.com/katalon-studio/docs/webui-enhanced-click.html)

history of the keyword:

> [@WebUI.Click -\> WebUI.enhancedClick](http://forum.katalon.com/t/webui-click-webui-enhancedclick/47257):
>
> Just a suggestion… When WebUI.click() has failed to successfully click a test object, by way of a new project execution setting,   Retry Failed Click with Enhanced Click, \<checkbox\> it should try WebUI.enhancedClick() automatically. Another new setting,   Try Enhanced Click first \<checkbox\> would reverse the above process.

> [@JavaScript clicks required for headless mode execution?](http://forum.katalon.com/t/javascript-clicks-required-for-headless-mode-execution/49138/2):
>
> I do this a lot - I don’t think it’s “less desirable” if (that’s a big IF) you know what you’re doing - read on… That’s a ton of questions which I’ll answer together… The number one issue with going the JavaScript route is inherent in the DOM element click API (i.e., it’s not JavaScript’s fault). Your click code (your click event) is applied to the element regardless of its availability. What does that mean? You can click an invisible element. You can click an element that is not visible i…

---

<div class="post-metadata">

**Author:** ![ferrariklersone](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ferrariklersone/32/15706_2.png) [@ferrariklersone](https://forum.katalon.com/u/ferrariklersone)\
**Post date:** [December 29, 2020, 9:06am UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/9 "2020-12-29T09:06:23Z")

</div>

Hello guy !

Plz how did you solve your problem, becoz I’m facing to the same problem now.

-_- -_-

---

<div class="post-metadata">

**Author:** ![ferrariklersone](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ferrariklersone/32/15706_2.png) [@ferrariklersone](https://forum.katalon.com/u/ferrariklersone)\
**Post date:** [December 29, 2020, 9:24am UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/10 "2020-12-29T09:24:30Z")

</div>

**hello bro !**

Thank you very much for this solution, I was crying yesterday to solve this kind of problem.

Thank u, thank u you saved my life on this 29 th Tuesday 2020

**i love you, be blessed brother.**

---

<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:** [December 29, 2020, 9:35am UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/11 "2020-12-29T09:35:12Z")

</div>

> [@ferrariklersone](#):
>
> for this solution

I made 3 proposals to luka. Which one helped you?

---

<div class="post-metadata">

**Author:** ![ferrariklersone](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ferrariklersone/32/15706_2.png) [@ferrariklersone](https://forum.katalon.com/u/ferrariklersone)\
**Post date:** [December 29, 2020, 10:20am UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/12 "2020-12-29T10:20:31Z")

</div>

Bro this solution helped me a lot, and I’m happy.  
1- I passed the cursor over element  
2- And i clicked it

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/8/8f75ff678a9958c2b6286e360452545a32eaa4bb.png)

---

<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:** [December 29, 2020, 11:53am UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/13 "2020-12-29T11:53:38Z")

</div>

Thank you for your reply.

---

<div class="post-metadata">

**Author:** ![ferrariklersone](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ferrariklersone/32/15706_2.png) [@ferrariklersone](https://forum.katalon.com/u/ferrariklersone)\
**Post date:** [December 30, 2020, 4:27pm UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/14 "2020-12-30T16:27:29Z")

</div>

hello guy, i have a problem please.  
I enter login & Password, when i clicked on Validated button, the test is passed, but the home page of the website is not displayed.  
The same page of authentification is displayed again, but on katalon sutdio, test is OK !

help please !

---

<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:** [December 30, 2020, 11:01pm UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/15 "2020-12-30T23:01:46Z")

</div>

@ferrariklersone

Your last post is a new question. You should make a new topic for its own. You can make it at  
[http://forum.katalon.com/](http://forum.katalon.com/) by clicking the “New Topic” buttonn.

 ![スクリーンショット 2020-12-31 7.59.06](https://europe1.discourse-cdn.com/katalon/original/2X/f/fb66d0e25508bd3c42fe6dc1db08197217a80e22.png)

---

<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:** [December 30, 2020, 11:01pm UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/16 "2020-12-30T23:01:55Z")

</div>

Closed on December 30, 2020, 11:01pm UTC



---

<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:** [December 30, 2020, 11:04pm UTC](https://forum.katalon.com/t/select-item-from-list-menu/49131/17 "2020-12-30T23:04:48Z")

</div>

@ferrariklersone

Your last question is a new one, not related to the this issue “Select item from List menu”. You should create a new topic on its own. You can make it at [http://forum.katalon.com/](http://forum.katalon.com/) by clicking the “+ New Topic” button.

 ![スクリーンショット 2020-12-31 7.59.06](https://europe1.discourse-cdn.com/katalon/original/2X/f/fb66d0e25508bd3c42fe6dc1db08197217a80e22.png)

And please have a look at the following guidance:  
[http://forum.katalon.com/t/tip-how-to-help-us-help-you/12919/29](http://forum.katalon.com/t/tip-how-to-help-us-help-you/12919/29)

You may find some additional message in the [JavaScript console](https://developers.google.com/web/tools/chrome-devtools/console) in the browser.
