.

gets the radio group selected value – watir

def sel_list_opt(sel_list)

arr=sel_list.getAllContents.to_a
d=arr.length.to_i
i=0
while 0 .. d
if sel_list.selected?(arr[i].to_s) == true
return arr[i].to_s
else
i=i+1
end
end
end

What's your thoughts on this?

*

Protected by WP Anti Spam