Getting value in RichSelect

Hi team,
I need to get the value of option selected in RichSelect. I am getting the id of the selected item.
How to get the value of the selected item?

Hi Team ,

How to get selected option value in rich select.

Earlier we have used Combo and used below code to get selected option value and Id
var specialistId = $$(“speciality”).getValue();
var speciality = $$(‘speciality’).getInputNode().value;

But this doesn’t work with Richselect. how to resolve this ?

You can use

$$(“speciality”).getText()

It works for combo as well

Thanks maksim