Hiya
Is it possible to get the MfcClassName property from an Element?
We have MFC controls that have the same ClassName but different MfcClassNames
Thanks
MfcClassName
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: MfcClassName
What do you mean with "MfcClassName"?
If you'd like to get the name of the MFC class that was used to create a window (e.g. CWnd or CDialog) then that functionality is currently not available in Ranorex. The problem is that as far as I know the only way to get that name is to inject into the automated process and get the CRuntimeClass of the object. If you know an easier way, like a window message one can send to the window and that returns the MfcClassName, then we could possibly build that functionality in.
Regards,
Alex
Ranorex Support Team
If you'd like to get the name of the MFC class that was used to create a window (e.g. CWnd or CDialog) then that functionality is currently not available in Ranorex. The problem is that as far as I know the only way to get that name is to inject into the automated process and get the CRuntimeClass of the object. If you know an easier way, like a window message one can send to the window and that returns the MfcClassName, then we could possibly build that functionality in.
Regards,
Alex
Ranorex Support Team
Re: MfcClassName
Ok Im not sure how its obtained but our previous automation tool (Compuware TestPartner) can get the MFCClassName property. In our AUT we have a base grid control class and two inherited classes... In the spy tool they come up with the same ClassName, so there's no way to distinguish them. However in TestPartner's spy tool they all have different mfc class names.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: MfcClassName
Could you just clarify what you mean by "MfcClassName"? You didn't confirm whether my guess was right that you would like to get "CWnd" or "CDialog" returned by that attribute.
Regards,
Alex
Ranorex Support Team
Regards,
Alex
Ranorex Support Team