Trying to click select element

Select element

Im trying to click at a select element but nothing happens. Then i tried to record it with the same result as approach.

<select name="budget_type">
    <option value="DAILY">Daily budget</option>
    <option value="LIFETIME">Lifetime budget</option>
</select>

click → name=budget_type

Test succeeds but nothing happens.

Also trying to select a value like this…

click -> name=budget_type value=DAILY
or
click -> name=budget_type -> DAILY

No luck

Hello Patrick,

I am able to click and select on my angular web page okay.
Try setting your listbox object like in the attach,
https://app.box.com/s/vmdbh8buy2oyahnjt0hofi4yefateoap
then in testcase, in script mode do:
WebUI.click(findTestObject(‘mypage/myListBox’), FailureHandling.CONTINUE_ON_FAILURE)
change mypage/myListBox to whatever your page/object name is.

If you are trying to select a value from the list box try:
WebUI.selectOptionByLabel(findTestObject(‘mypage/myListBox’), ‘Daily budget’, false)

Regards

Hi AI Test,

Thanks for your reply! I’m not using the Katalon Studio at the moment but the Katalon Automation Recorder(browser extension) to run my tests.

After searching on our beloved Google i found the following solution that works. It doesn’t seem to be really a end user approach and not really testing if the ui works as expected?

Example
select > name=budget_type > index=2

This ticket can be closed!

Thanks, Patrick :wink: