How to get Control name of Control

Ask general questions here.
Stefan
Posts: 4
Joined: Tue Jun 17, 2008 3:27 pm

How to get Control name of Control

Post by Stefan » Mon Jul 28, 2008 1:26 pm

Hello,

Although I dont have a ControlName of the control, I am able to find the corresponding element to actually perform actions on this control. But if I want to find out, what the ControlName of the control that I am working on is, I cannot seem to find a way.

Please see the attached screenshot of RanorexSpy. I can access the PageTabList element but not the control.

Please help.

Thanks,
Stefan

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Mon Jul 28, 2008 3:39 pm

Stefan,

I dont exactly understand what you are trying to accomplish.
There is no 1:1 relationship between controls and elements, so one control may contain one or more elements.

Please describe what you are trying to do and, if possible, include a screenshot of the spy including the relevant parts of your application.


Michael
Ranorex Team

P.S. Alternativ können sie auch eine Mail an [email protected] senden

Stefan
Posts: 4
Joined: Tue Jun 17, 2008 3:27 pm

Post by Stefan » Mon Jul 28, 2008 3:54 pm

I dont have the name for the control "tc_firma".
I find the element with the help of FindChild(Role.PageTabList).

Now I need to get a string with the controlname "tc_firma", that I dont know.
Because I have to deal with several PageTabLists, that have different names.

Hope that this description is a little more clear.

Thanks.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Thu Jul 31, 2008 3:46 pm

Currently (V1.5.0), there is no functionality to get the corresponding control for an element. Sorry for that!

However, the next Ranorex version (V1.5.1) will support this functionality. The Element class will have a Control property that returns the control corresponding to the element.

Regards,
Alex
Ranorex Support Team

Stefan
Posts: 4
Joined: Tue Jun 17, 2008 3:27 pm

Post by Stefan » Mon Aug 04, 2008 10:03 am

Hello,

thank you.

One further question.
When is V1.5.1 going to be released?

regards
Stefan

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Tue Aug 05, 2008 4:06 pm

We plan to release the version on August.
In the next few weeks.

Jenö
Ranorex Team