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
Target object Subitem Patterns Desciption
The Root button object AtLocation("Root") Acts against the Root button if this option is enabled.
The Root dropdown button object AtList(AtLocation("Root"), AtLocation(DROPDOWN)) Acts against the Root level drop down arrow, which will show a drop down with the available first level Locations.
The History dropdown button AtLocation(LOCATION.DROPDOWN) Acts against the History dropdown button.
To act against the ActionButtons of the control AtButton(AtText | AtPosition | AtIndex | AtName) To act against an action button, the AtButton subitem is used with an identifying Subitem.
AtText - Uses the Tooltip text of the ActionButton as the discriminator.
AtName - Uses the Key of the ActionButton as the discriminator.
AtPosition - Uses the index of the ActionButton in the ActionButtonsCollection as the discriminator.
AtIndex - Uses the visible position of the ActionButton as the discriminator.
To activate against a LocationButton of the control. This pattern is available only for the first level buttons. AtText | AtPosition | AtIndex | AtName AtText - Uses the Text of the button to find the button.
AtName - Uses the Key of the button to find the button.
AtPosition - Uses the position of the Location in it's Parent's Locations collection to locate the item
AtIndex - Uses the visible position of the Location in it's Parent's Locations collection to locate the item
To activate against a LocationButton of the control. This pattern is available only for the first level buttons. AtList( InfragisticsLocationSubitem, InfragisticsLocationSubitem) When working against a location button which is deeper then the first level, a List (or Path) of subitems must be used to reach the destination. This list of subitems will be the full path to the option being selected.
Example:
If the NavigationBar has a top level location 'fruit' and a second level location 'apple' a valid list to activate the 'apple' button would be:
AtList(AtText('fruit'), AtText('apple'))
The individual subitems available are AtText | AtPosition | AtIndex | AtName. So different subitems can be mixed together. AtList(AtText('fruit'), AtName('redFruit')) would be a valid pattern to reach the apple button, if the Location with text 'apple' has a key value of 'redFruit'
Location button drop down button. AtList ( InfragisticsLocationSubitem, AtLocation(DropDown)) If a location has child locations which can be selected there will be a drop down button. To activate this button, the pattern is the same as the pattern for activating the location button with a IBM Location subitem for dropdown added to the end.
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