Accessing controls from different tabs bug

Class library usage, coding and language questions.
vraju
Posts: 5
Joined: Thu Jun 14, 2007 2:25 am

Accessing controls from different tabs bug

Post by vraju » Tue Nov 27, 2007 6:44 pm

I used element functions to identify controls under each tab from Tabbed dialog.

I used RxElementFindChild with role as ROLE_SYSTEM_DIALOG. I could see the number children of this role was equal to the number tabs. But When I try to access the children from each of these Dialogs I always get children from first Tab.

Is this a known issue?
Do we have any other workaround to find the children tabs using element functions?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Wed Nov 28, 2007 11:15 am

Just because the number of children of the dialog element equals the number of tabs that doesn't necessarily mean that the children really are the tab controls.

You should search for tab pages using the ROLE_SYSTEM_PAGETAB role. Just supply this role to the RxElementFindChildren method searching in the dialog element and you should get elements for all tab pages of your dialog.

Alex
Ranorex Support Team