@Override
    public Object getValue() throws WidgetException {
        List<String> selectedOptions = null;
        try {
            selectedOptions = getSelectedItems_internal();

        } catch (Exception e) {
            throw new WidgetException("Error while fetching selected value on select",
                    getByLocator(), e);
        }

        if (selectedOptions.size() == 0) {
            return null;
        } else if (selectedOptions.size() == 1) {
            return selectedOptions.get(0);
        } else {
            return selectedOptions;
        }
    }
@ Override public Object getValue ( ) throws WidgetException { List < String > selectedOptions = null ; try { selectedOptions = getSelectedItems_internal ( ) ; } catch ( Exception e ) { throw new WidgetException ( "Error while fetching selected value on select" , getByLocator ( ) , e ) ; } if ( selectedOptions . size ( ) == 0 ) { return null ; } else if ( selectedOptions . size ( ) == 1 ) { return selectedOptions . get ( 0 ) ; } else { return selectedOptions ; } }
/*
(non-Javadoc)

@see
qc.automation.framework.widget.IEditableField#getValue(java.lang.String)