# Unable to select a string in dropdown

**URL:** <https://forum.katalon.com/t/unable-to-select-a-string-in-dropdown/54250>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [April 28, 2021, 8:14am UTC](https://forum.katalon.com/t/unable-to-select-a-string-in-dropdown/54250 "2021-04-28T08:14:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![simmy.pawar](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/simmy.pawar/32/16104_2.png) [@simmy.pawar](https://forum.katalon.com/u/simmy.pawar)\
**Post date:** [April 28, 2021, 8:14am UTC](https://forum.katalon.com/t/unable-to-select-a-string-in-dropdown/54250/1 "2021-04-28T08:14:43Z")

</div>

Hi, I’m not able to select a string in the dropdown list. I’ve tried with the **Select option by label/index**. Please see the screenshot for the information.

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/2/6/2627b3f224be4ac65e7670ea42fde5a128dfc85a.png)

---

<div class="post-metadata">

**Author:** ![anuradha](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/anuradha/32/16103_2.png) [@anuradha](https://forum.katalon.com/u/anuradha)\
**Post date:** [April 28, 2021, 9:15am UTC](https://forum.katalon.com/t/unable-to-select-a-string-in-dropdown/54250/2 "2021-04-28T09:15:15Z")

</div>

I am sure if you search the forum you will find a lot of answers you can try.  
For example:

> [@xPath of dropdown has input tag so Katalon is giving error](http://forum.katalon.com/t/xpath-of-dropdown-has-input-tag-so-katalon-is-giving-error/33491):
>
> Hello, I am trying to select an element from dropdown that has input tag. My code is - WebUI.selectOptionByIndex(findTestObject(‘Layer Search Objects/Page\_Map/div\_select features from’), 1) xPath of the element is: //input[@id=‘layer\_optTypes’] Error that i am getting is - Caused by: org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been “select” but was “input”

> [@How can i handle drop down list issue](http://forum.katalon.com/t/how-can-i-handle-drop-down-list-issue/45632/3):
>
> this screenshot from Inspect element

You need to check first if the tag is a select in your html.

---

<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:** [April 28, 2021, 4:39pm UTC](https://forum.katalon.com/t/unable-to-select-a-string-in-dropdown/54250/3 "2021-04-28T16:39:11Z")

</div>

At the top of your error message, it says you are **not** using a “select” for your drop-down. The selectOptionByLabel(), selectOptionByValue() and selectOptionByIndex() work on a **select** tag. Either show us your HTML to better assist you or revisit your HTML and determine the appropriate means for your drop-down.

This may assist you on viewing the HTML:

[http://forum.katalon.com/t/how-to-use-the-browser-developer-tools-f12-devtools/34329](http://forum.katalon.com/t/how-to-use-the-browser-developer-tools-f12-devtools/34329)
