Using Watir, how can I return the text of the currently selected item in a drop down list? It appears that getSelectedItems is deprecated.
views:
80answers:
1
+3
A:
Use selected_options() instead.
selected_options () Description:
Gets all the selected items in the select list as an array. An empty array is returned if the select box has no selected item. Output:
Array containing the selected items of the select list.
Mahmoud
2010-08-22 18:26:12
Thank you... I don't know how I didn't see that!
NinjaCat
2010-08-25 10:37:29