var optionsList = elementObj.GetAllSelectedOptions();
// Displays all selected options in a select object.
var coreObj = new ActiveXObject("OpenTwebst.Core");
var browser = coreObj.StartBrowser("http://www.codecentrix.com/tests/qt3.htm");
var select = browser.FindElement("select", "");
var optList = select.GetAllSelectedOptions();
var text = "";
for (var i = 0; i < optList.length; ++i)
{
text += optList.item(i).uiName;
text += "\n";
}
WScript.Echo(text);