简体   繁体   English

冠层 - 使用选择列表

[英]Canopy - Working With Select Lists

I have just started working with Canopy and am struggling with select lists. 我刚刚开始与Canopy合作,并且正在努力选择列表。 I know you can set the selected item by value by doing: 我知道你可以通过以下方式按值设置所选项目:

"#dropDown" << read "option[value='x']"

However, how would you select the nth element of a select list> Or, how about selecting by text? 但是,如何选择选择列表的第n个元素>或者,如何通过文本进行选择? I can't seem to find anything in the documentation. 我似乎无法在文档中找到任何内容。

在这里得到了一些很好的建议/答案: https//github.com/lefthandedgoat/canopy/issues/176

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM