Karate UI Drop Down Handling

Viewed 2127

So i'm pretty sure that I'm doing something wrong but here it goes.

I'm trying to implement Karate UI to press a drop down menu and then select an element from that drop down.

  Scenario: go to manual entitlement
Given driver 'url'
* waitForText('body', 'Commuted value')
When waitFor('#event-dropdown').click()
And select('select[id=event-dropdown]', 'Disability')
And def checkBox = waitUntil('#chkbox_pen_label0')
Then match text(checkBox) == 'Some text'

The HTML looks as follows HTML

Would appreciate any help I can get.

1 Answers
Related