Hi,
I have a MFC date control in my application. Ranorex identifies it as 'Element'. I want to click the Element through code. But there is no method Click for Element class. How can achieve clicking on that element?
Code is like this:
Element ele = "rxpath of element";
ele.Click() //How to achieve this?
Regards,
Siva R S
How to click a MFC Element
Re: How to click a MFC Element
You could try ele.InvokeAction("Click", null); or declare as Ranorex.Unknown rather than Element.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to click a MFC Element
That InvokeAction will not work, but as you said using Ranorex.Unknown instead of Element doessdaly wrote:ele.InvokeAction("Click", null);

Ranorex.Unknown ele = "rxpath of element"; ele.Click()Regards,
Alex
Ranorex Team
-
- Posts: 62
- Joined: Wed Mar 09, 2011 4:40 pm
Re: How to click a MFC Element
Thanks a lot.
Ranorex.Unknown worked
Ranorex.Unknown worked
