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
This value is defined by each TestObject differently.
Remarks
Subitem signature Description
AtPoint(x, y) Can be used to act against a spot in the tab that does not have a notable subitem.
AtPosition(position) Acts against the Tab at the index in the Tabs collection of the Tab Control.
AtIndex(index) Acts against the Tab at the index in the VisibleTabs collection of the Tab Control.
AtName(name) Acts against the Tab with the Key equal to the inputted string.
AtText(text) Acts against the Tab with the text equal to the inputted string.


The scrollbar of the Tab can be acted against with a Location subitem.
Subitem signature Description
AtLocation("Max_Button")
AtLocation("Min_Button")
AtLocation(SCROLL_LEFTBUTTON)
AtLocation(SCROLL_RIGHTBUTTON)
AtLocation(SCROLL_DOWNBUTTON)
AtLocation(SCROLL_UPBUTTON)
AtLocation(DROPDOWN)
AtLocation(SCROLL_LEFT)
AtLocation(SCROLL_RIGHT)
AtLocation(SCROLL_UP)
AtLocation(SCROLL_DOWN)

The close button of the Tab can be acted against with a Location subitem or List subitem depending of the CloseButtonLocation property value.
If CloseButtonLocation is TabCloseButtonLocation.HeaderArea:
AtLocation("CLOSE_BUTTON")
If CloseButtonLocation is TabCloseButtonLocation.Tab:
AtList([Tab identifier], AtLocation("CLOSE_BUTTON"))
Tab identifier can be: AtPosition, AtIndex, AtName, AtText
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