UPDATE 20130902: .value didn't seem to work
if you want the selected option's value (label) use
which will give you the label text as it is seen in the browser, e.g.: "Despatch"
the variable $role is sent in with a value of 1:
_setSelected(_select("editTAParty:role"), $role);
_wait(10000, _select("editTAParty:role").options.selectedIndex == $role);
so if your code isn't using index numbers for setting the select, then use _getSelectedText instead:
_wait(10000, _getSelectedText(_select("editTAParty:role")) == $role);
No comments:
Post a Comment