MSComList

Extends ActiveXObject

Extends SeSSimulatedObject

Behavior Pattern: MSComCtlListView20Behavior

Property Summary

Property Description Getter Setter
ItemChecked Check if item is checked. GetItemChecked
ItemCount Number of items. GetItemCount
ItemSelected Check if item is selected. GetItemSelected

Action Summary

Action Description
DoCheckItem Checks items of this object.
DoClickItem Clicks the specified item
DoSelectItem Selects items of this object.

Property Detail

ItemChecked

Check if item is checked.

Getter Parameters:

Name Type Description
nameCaptionIndex string | number index, name or caption of the item.

Type: boolean

Accessors: GetItemChecked

ItemCount

Number of items.

Type: number

Accessors: GetItemCount

ItemSelected

Check if item is selected.

Getter Parameters:

Name Type Description
nameCaptionIndex string | number index, name or caption of the item.

Type: boolean

Accessors: GetItemSelected

Action Detail

DoCheckItem

Checks items of this object.

DoCheckItem(nameCaptionIndex, bCheck) 

Parameters:

Name Type Description
nameCaptionIndex string | number index, name or caption of the item.
bCheck boolean Desired check state for the item.

Returns:

boolean: 'true' if success, 'false' otherwise.

DoClickItem

Clicks the specified item

DoClickItem(nameCaptionIndex, clickType, xOffset, yOffset) 

Parameters:

Name Type Description
nameCaptionIndex string | number index, name or caption of the item.
clickType string Type of click, can be one of "L" - left click, "LD" - double left click, "R" - right click, "RD" - double right click, "M" - middle click, "MD" - double middle click, "N" - don't click
Optional, Default: L.
xOffset number X offset to click within object. Calculated from the top-left corner. Default is a center. Floating point in the range (-2, 2) means percentage of the width (requires Rapise 6.5+, also requires native events mode in Web tests).
Optional.
yOffset number Y offset to click within object. Calculated from the top-left corner. Default is a center. Floating point in the range (-2, 2) means percentage of the height (requires Rapise 6.5+, also requires native events mode in Web tests).
Optional.

Returns:

boolean: 'true' if successful, 'false' otherwise

DoSelectItem

Selects items of this object. First it clears existing selection.

DoSelectItem(nameCaptionIndex, bSelect) 

Parameters:

Name Type Description
nameCaptionIndex string | number index, name or caption of the item.
bSelect boolean Desired selected state for the item.

Returns:

boolean: 'true' if success, 'false' otherwise.