Version

Click(Subitem) Method

Performs a left-mouse click on the specified subitem of this TestObject.
Syntax
'Declaration
 
Public Overloads Overrides Sub Click( _
   ByVal subitem As Rational.Test.Ft.Script.Subitem _
) 
public override void Click( 
   Rational.Test.Ft.Script.Subitem subitem
)

Parameters

subitem
The Subitem designating which object to operate against.
Remarks
The ListViewTestObject will accept:

A Point Subitem. Acts at an object relative point on the control.

A ColumnHeader Subitem. Acts on a ColumnHeader object. The ColumnHeader Subitem accepts an inner Subitem which can be:
  • A Text Subitem which corresponds to the Text of a column.
  • A Name Subitem which corresponds to the Key of a column.
  • A Position Subitem which corresponds to the Position of the colmn in its parent collection.

To act against various List items, there are four Subitems that can be used ListItemSubitem:

  • Position - Uses the position of the ListItem in it's parent collection to identify it.
  • Text - Uses the Text of the ListItem to identify it.
  • Index - Uses the Visible postion of a ListItem to identify it.
  • Name - Uses the Key of the ListItem to identify it.

A List Subitem

Subitems (in order) Description
[ListItemSubitem, AtLocation] The ListItemSubitem is one of the four subitems that can be used to identify a ListItem

The Location subitem can either be a Location.CAPTION, a Location.CHECKBOX, or an "Image"
and is used to designate which part of a ListItem you are clicking on.
[ListItemSubitem, AtColumn] The ListItemSubitem is one of the four subitems that can be used to identify a ListItem

The Column Subitem accepts a Name Subitem and is used to designate which column of the listItem should be clicked
[ListItemSubitem, AtColumn, AtLocation] A combination of the two options above.
[AtText , AtText, AtLocation The first Text subitem is the Text of the Group of a Subitem
The second Text subitem is the text of the Item which will be acted against
The Location subitem is the location item listed above
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also