tags:

views:

80

answers:

1

Using Watir, how can I return the text of the currently selected item in a drop down list? It appears that getSelectedItems is deprecated.

+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.

Source

Mahmoud
Thank you... I don't know how I didn't see that!
NinjaCat