Ranorex

How to get ControlID?

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



Joined: 19 Nov 2006
Posts: 1

PostPosted: Mon Nov 20, 2006 2:14 pm    Post subject: How to get ControlID?
Hi, I want to test our GUI application. We use our controls in the main form, and I don't know how to get them.
I want to try to get them with ControlId but I saw that it isn't fix, and it changed all the time.
so my question is: in your RanorexSpy how do you get the Control ID of the controls?
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Tue Nov 21, 2006 1:09 am    Post subject:
Handle, Class name and ControlId are old properties of windows controls.
Use these properties only if you want to automate an old windows application.

In .NET applications the ControlId is different every time you launch the form, so you cannot use this as your identifier. The class name is also dynamically generated.
Use the ControlName property to find a control in a .NET application.

A ControlName is a unique identifier in a .NET form and a ControlId is a unique identifies in older windows applications or dialogs.

Jenö Herget
Ranorex 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 -> RanorexSpy 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