开发者

checking current selection or value in a dropdown list using selenium

开发者 https://www.devze.com 2022-12-30 00:44 出处:网络
HI i was wondering if there is a way to check what is开发者_JAVA技巧 the current selected value in a drop down list using selenium ruby?

HI

i was wondering if there is a way to check what is开发者_JAVA技巧 the current selected value in a drop down list using selenium ruby?

thanks


You can use the verifySelectedX calls to do this.

So to check the label it would be assert_equal "bar", @selenium.get_selected_label("foo")

or to do the value of that item it would be assert_equal "bar", @selenium.get_selected_value("foo")

0

精彩评论

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