Page 1 of 1

How to test subItem of a list ctrl?

Posted: Fri Oct 27, 2006 4:29 am
by JohnsonFeng
when I want to click a subItem of the listCtrl to edit

Posted: Wed Nov 01, 2006 3:08 pm
by webops
You should select the subItem and then click it with the mouse:

Code: Select all

bRet = RxElementFindChild(&element, ROLE_SYSTEM_LISTITEM, "Test2", NULL, &listItem);
if (bRet==TRUE)
{
  RxElementSelect(&listItem, SELFLAG_TAKEFOCUS | SELFLAG_TAKESELECTION);
  RxMouseClickElement(&listItem);
}
...
Jenö Herget
Ranorex Team