空手道UI下拉处理 [英] Karate UI Drop Down Handling
本文介绍了空手道UI下拉处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我很确定我做错了什么,但是事情就解决了.
So i'm pretty sure that I'm doing something wrong but here it goes.
我正在尝试实现空手道UI,以按下一个下拉菜单,然后从该下拉菜单中选择一个元素.
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'
HTML如下所示 HTML
The HTML looks as follows HTML
非常感谢我能提供的任何帮助.
Would appreciate any help I can get.
推荐答案
我认为这应该可行,请参考文档: https://github.com/intuit/karate/tree/master/karate-core#select
I think this should work, refer the docs: https://github.com/intuit/karate/tree/master/karate-core#select
And select('#event-dropdown', '{}Disability')
这篇关于空手道UI下拉处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文