com.appperfect.devcommon.script.webelement
Interface WebComboBox

All Superinterfaces:
IScript, WebObject

public interface WebComboBox
extends WebObject

WebComboBox element can be created using createWebComboBox API of IScriptEngine interface. The return value is an instance of WebComboBox interface. Once WebComboBox is created, you can play events on it. Apart from additional events mentioned below, WebComboBox also supports events supported on WebObject

See Also:
WebObject

Method Summary
 java.lang.String getItem(int index)
 To get item at specified index in the combo
 java.lang.String[] getItems()
 To get all the items in the combo
 int getItemsCount()
 To get items count in the combo
 java.lang.String[] getSelectedItems()
 To get all the selected items in the combo
 boolean select(int index)
 To select item at specified index in the combo
 boolean selectItem(java.lang.String item)
 To select specified item in the combo
 boolean selectMultipleItems(java.lang.String item, java.lang.String separator)
 To select multiples items in the combo
 
Methods inherited from interface com.appperfect.devcommon.script.webelement.WebObject
addAttribute, click, dblClick, mouseMove, rightClick, set, setBreakPoint, setExactMatchForAttributesComparision, setIgnored, setImagePath, setThinkTime, setTitle, submit, type, wait
 
Methods inherited from interface com.appperfect.devcommon.script.IScript
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setTimeout
 

Method Detail

getItem

java.lang.String getItem(int index)
To get item at specified index in the combo

Parameters:
index - zero based index of the item to fetch
Returns:
item text at specified index

getItems

java.lang.String[] getItems()
To get all the items in the combo

Returns:
array of items in combo

getItemsCount

int getItemsCount()
To get items count in the combo

Returns:
count of items in combo

getSelectedItems

java.lang.String[] getSelectedItems()
To get all the selected items in the combo

Returns:
array of selected items in combo

select

boolean select(int index)
To select item at specified index in the combo

Parameters:
index - zero based index of the item to select
Returns:
true if success, false otherwise

selectItem

boolean selectItem(java.lang.String item)
To select specified item in the combo

Parameters:
item - item to select
Returns:
true if success, false otherwise

selectMultipleItems

boolean selectMultipleItems(java.lang.String item,
                            java.lang.String separator)
To select multiples items in the combo

Parameters:
item - items to select
separator - string separating the items
Returns:
true if success, false otherwise


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.