Ranorex

Accessing controls from different tabs bug

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexCore
View previous topic :: View next topic  
Author Message
vraju



Joined: 14 Jun 2007
Posts: 5

PostPosted: Tue Nov 27, 2007 7:44 pm    Post subject: Accessing controls from different tabs bug
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?
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 257

PostPosted: Wed Nov 28, 2007 12:15 pm    Post subject:
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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexCore All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum