Drop down is not being recognized after recording...

Hi

I have started learning the Katalon Studio - but got stuck almost immediately with “Select Option By Value”…

Here is the actual code:

WebUI.waitForElementVisible(findTestObject(‘BRONTO_ALL/select_Select a Sub-Account52’), 10)

WebUI.selectOptionByValue(findTestObject(‘BRONTO_ALL/select_Select a Sub-Account52’), ‘Financial Media Corp (finmc)’, true)

Here is the error i get:
Test Cases/BrontoSendMsg FAILED because (of) Unable to select option by value ‘Financial Media Corp (finmc)’ of object ‘Object Repository/BRONTO_ALL/select_Select a Sub-Account52’ using regular expression (Root cause: No option matched.)

Note: The same works fine with Katalon Recorder…

Thank you very much!
Andrew

Hi Andrew,

try to change true to false in second method.
Also, doublecheck, if ‘Financial Media Corp (finmc)’ option exists (and if label is the very same in your dropdown menu).

1 Like

Marek Melocik said:

Hi Andrew,

try to change true to false in second method.
Also, doublecheck, if ‘Financial Media Corp (finmc)’ option exists (and if label is the very same in your dropdown menu).

Hi Marek

Changing the value to false, made it work. But what is the logic behind? Why?

Thank you!
Andrew