# Select option by value problem

**URL:** <https://forum.katalon.com/t/select-option-by-value-problem/12819>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [August 24, 2018, 8:00am UTC](https://forum.katalon.com/t/select-option-by-value-problem/12819 "2018-08-24T08:00:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad\_Shahiran](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@Mohammad\_Shahiran](https://forum.katalon.com/u/Mohammad_Shahiran)\
**Post date:** [August 24, 2018, 8:00am UTC](https://forum.katalon.com/t/select-option-by-value-problem/12819/1 "2018-08-24T08:00:25Z")

</div>

I’m having trouble with select option by value. I don’t know what seem to be the problem. When i run the video, it just skip the steps for selecting and changing the value. Later it just show the value has been change and stuck at that page.

est Cases/Dcheq2 FAILED because (of) Unable to select option by value ‘MM020000—Save’ of object ‘Object Repository/Dcheq2/Page\_INReport/select\_Basic Group Codes—Sav’ using regular expression (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element

WebUI.openBrowser(‘’)

WebUI.maximizeWindow()

WebUI.delay(3)

WebUI.setText(findTestObject(‘Dcheq2/Page\_Reporting Management System/input\_txtUserID’), ‘’)

WebUI.delay(3)

WebUI.sendKeys(findTestObject(‘Dcheq2/Page\_Reporting Management System/input\_txtUserID’), Keys.chord(Keys.ENTER))

WebUI.delay(3)

WebUI.acceptAlert()

WebUI.delay(3)

WebUI.click(findTestObject(‘Dcheq2/Page\_INReport/a\_Administration’))

WebUI.delay(3)

WebUI.click(findTestObject(‘Spy-Web/Page\_INReport/a\_ACCESS CONTROL’))

WebUI.delay(3)

WebUI.click(findTestObject(‘Dcheq2/Page\_INReport/a\_Task Assignment’))

WebUI.delay(3)

WebUI.selectOptionByValue(findTestObject(‘Dcheq2/Page\_INReport/select\_Admin Administrators Br’), ‘Administrators’, true)

WebUI.delay(3)

**WebUI.selectOptionByValue(findTestObject(‘Dcheq2/Page\_INReport/select\_Basic Group Codes—Sav’), ‘MM020000—Save’, true)**

**WebUI.click(findTestObject(‘Dcheq2/Page\_INReport/input\_cmdAdd’))**

**WebUI.selectOptionByValue(findTestObject(‘Dcheq2/Page\_INReport/select\_Basic Group Codes—Vie’), ‘MM020000—View’, true)**

**WebUI.click(findTestObject(‘Dcheq2/Page\_INReport/input\_cmdAdd’))**

**WebUI.click(findTestObject(‘Dcheq2/Page\_INReport/input\_cmdSave’))**

WebUI.click(findTestObject(‘Dcheq2/Page\_INReport/button\_Back’))

WebUI.click(findTestObject(‘Dcheq2/Page\_INReport/a\_HOME’))

WebUI.click(findTestObject(‘Dcheq2/Page\_INReport/a\_Sign out’))

WebUI.click(findTestObject(‘Dcheq2/Page\_INReport/button\_Confirm’))

WebUI.closeBrowser()

---

<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 24, 2018, 12:27pm UTC](https://forum.katalon.com/t/select-option-by-value-problem/12819/2 "2018-08-24T12:27:36Z")

</div>

Assuming your target element is an HTML SELECT element and further assuming the value you are trying to select is ‘ **MM020000—Save** ’ then I suspect you do NOT want to use a regex.

Try this:

```auto
WebUI.selectOptionByValue(findTestObject('Dcheq2/Page_INReport/select_Basic Group Codes---Sav'), 'MM020000---Save')

```

---

<div class="post-metadata">

**Author:** ![Mohammad\_Shahiran](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@Mohammad\_Shahiran](https://forum.katalon.com/u/Mohammad_Shahiran)\
**Post date:** [August 27, 2018, 1:20am UTC](https://forum.katalon.com/t/select-option-by-value-problem/12819/3 "2018-08-27T01:20:58Z")

</div>

Nothing change… The error still happen

---

<div class="post-metadata">

**Author:** ![Mohammad\_Shahiran](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@Mohammad\_Shahiran](https://forum.katalon.com/u/Mohammad_Shahiran)\
**Post date:** [August 27, 2018, 1:32am UTC](https://forum.katalon.com/t/select-option-by-value-problem/12819/4 "2018-08-27T01:32:31Z")

</div>

For example, the one that I circle is the value that I want it to move to the right box. When do it during recording it work just fine. When I watch the video, the value is able to move to the right box but in very fast mode. I tried using delay or waitforelementclickable but the process still in fast mode like it just skip the process where i move the value using the move button… Then it get stuck on this page. My plan is to move the two value to the right box and save it. Even the value is move, the page got stuck in here.

![](https://s3.amazonaws.com/katalon-forum/editor/he/ie6zvm0x5tat.png "Image: https://s3.amazonaws.com/katalon-forum/editor/he/ie6zvm0x5tat.png")

[Untitled.png](https://s3.amazonaws.com/katalon-forum/editor/he/ie6zvm0x5tat.png)

---

<div class="post-metadata">

**Author:** ![saranyarajadhurai](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/saranyarajadhurai/32/16104_2.png) [@saranyarajadhurai](https://forum.katalon.com/u/saranyarajadhurai)\
**Post date:** [June 23, 2021, 7:22am UTC](https://forum.katalon.com/t/select-option-by-value-problem/12819/5 "2021-06-23T07:22:12Z")

</div>

Can anyone guide me please

---

<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:** [June 23, 2021, 11:02pm UTC](https://forum.katalon.com/t/select-option-by-value-problem/12819/6 "2021-06-23T23:02:59Z")

</div>

You should probably open you own forum question rather than tag onto a 3 year old one and perhaps give a little bit of information on what you want assistance with.

If you have want to operate something like the above Selection box, then you could try to use the Web Spy or Web Record and see what that achieves.

---

<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:31am UTC](https://forum.katalon.com/t/select-option-by-value-problem/12819/7 "2022-08-08T07:31:31Z")

</div>

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


