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 Sub Item to perform the action over. The accepted subitem type for this TestObject is List and Path
Remarks
Subitem syntax is:
  • AtPath("[Group]")
  • AtPath("[Group]->Location(SCROLL_DOWNBUTTON/SCROLL_UPBUTTON)")
  • AtPath("[Group]->[Item]")
  • AtPath("[Group]> [Item] >Location(Image/CAPTION)")
The Group and Item can be identified by one of the following ways:
  • AtText([Group header text or item text])
  • AtName([Group key or item key])
  • AtIndex([Group or Item visible index - 0 based index])
  • AtPosition([Group or item actual index - 0 based index])
Sample code:
            ultraListBar1list().click(atPath("Group1"));
            ultraListBar1list().click(atPath("Group1->Location(SCROLL_DOWNBUTTON)"));
            ultraListBar1list().click(atPath("Group1->New ListItem2"));
            ultraListBar1list().click(atPath("Group1->New ListItem1->Location(Image)"));
            ultraListBar1list().click(atList(AtIndex(0), AtName("New ListItem1",AtLocation("Image")));
            ultraListBar1list().click(atList(AtPosition(0), AtLocation("SCROLL_DOWNBUTTON")));
            
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