开发者

How to select a value from dropdown

开发者 https://www.devze.com 2023-01-27 05:01 出处:网络
Customer Name is the dropdown with almost 30 values, I want to select one value from the dr开发者_JAVA技巧op down in Watir script.

Customer Name is the dropdown with almost 30 values, I want to select one value from the dr开发者_JAVA技巧op down in Watir script.

I have used the following code, but nothing is happening.

ie.select_list(:name, "Customers").select "Test"


Use 'set':

ie.select_list(:name, "Customers").set "Test"

http://wiki.openqa.org/display/WTR/Selection+Boxes

0

精彩评论

暂无评论...
验证码 换一张
取 消