version 1.0

com.actimind.actiwate.testing.html.objects
Interface SingleSelect

All Superinterfaces:
BaseElement, BaseSelect, ClickableElement, FormControl, com.actimind.actiwate.testing.logging.Loggable

public interface SingleSelect
extends BaseSelect

Represents HTML single select (drop down).


Method Summary
 int selectedNum()
          Returns index of selected option, starting from zero or -1 in case of empty options list.
 Option selectedOption()
          Returns selected option or null in case of empty options list.
 
Methods inherited from interface com.actimind.actiwate.testing.html.objects.BaseSelect
option, optionByText, optionByValue, options, optionsNum
 
Methods inherited from interface com.actimind.actiwate.testing.html.objects.FormControl
name
 
Methods inherited from interface com.actimind.actiwate.testing.html.objects.BaseElement
element, id
 
Methods inherited from interface com.actimind.actiwate.testing.logging.Loggable
getLogDesc
 

Method Detail

selectedOption

public Option selectedOption()
Returns selected option or null in case of empty options list. If there are no options with 'selected' attribute, then the first option will be returned.

Returns:
selected option or null.

selectedNum

public int selectedNum()
Returns index of selected option, starting from zero or -1 in case of empty options list. If there are no options with 'selected' attribute, then index of the first option will be returned - 0.

Returns:
index of selected option.


Copyright © 2007 Actimind, Inc. All Rights Reserved.