Updated javadoc of pressSpinnerItem and pressMenuItem