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
How to get Control name of Control
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
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
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
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.
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.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
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
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
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact: