Reputation: 49
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.
Upvotes: 2
Views: 4706
Reputation: 58088
I think this should work, refer the docs: https://github.com/intuit/karate/tree/master/karate-core#select
And select('#event-dropdown', '{}Disability')
Upvotes: 2