You should select the subItem and then click it with the mouse:
Code: click into code to enlarge
bRet = RxElementFindChild(&element, ROLE_SYSTEM_LISTITEM, "Test2", NULL, &listItem);
if (bRet==TRUE)
{
RxElementSelect(&listItem, SELFLAG_TAKEFOCUS | SELFLAG_TAKESELECTION);
RxMouseClickElement(&listItem);
}
...
Jenö Herget
Ranorex Team |