Hi,
I want to identify the tree item ,
The rx path for the tree item is
/form[@processname='EXCEL']/element[@class='EXCEL2' and @instance='2']/container[@caption='eGlue System Data Objects']/element/element/container/element/element/element/element/container/element/element/tree/treeitem[1]/button[@automationid='Expander']
I am getting the message like this
Unable to cast object of type 'Ranorex.Libs.WinForms.InvokeResult' to type 'Ranorex.Libs.WinForms.ControlProxy'.
if this message is not thrown ...it doesnt identify the control.Pls help me to solve this...Very urgent..
Thanks,
sonali.
unable to cast
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: unable to cast
Hi,
You are using WPF inside the Excel Application right?
Please answer me also a few additional questions:
Regards,
Peter
Ranorex Team
It is only possible to find this element if this warning is thrown? Did you check the RxPath with Ranorex Spy?sbaheti wrote:if this message is not thrown ...it doesnt identify the control
You are using WPF inside the Excel Application right?
Please answer me also a few additional questions:
- Which version of Ranorex is in use?
- Does this error occur always on the same code part or on different places?
- Would it be possible to post us the code snippet, where the code causes this warning
- Which operating system do you have?
- Are you working on a x86 or x64 system?
Regards,
Peter
Ranorex Team
Re: unable to cast
Hi,
1.using Ranorex 3.0.1 Version,
2.yes,The error occur at the same place.Actually i has to run some series of test cases and that control is the entry point for all the test cases(I mean all the test cases should identify the control ).when i run some test case doesnt identify and some test case identifying that one.
3. Windows 7
4.x86 system i am using
those controls are wpf controls hosted in vsto control into excel application.Actuallly that is an addin to excel.
sorry we cant provide the code.Pls do the need ful asap.
Thanks ,
Sonali.
1.using Ranorex 3.0.1 Version,
2.yes,The error occur at the same place.Actually i has to run some series of test cases and that control is the entry point for all the test cases(I mean all the test cases should identify the control ).when i run some test case doesnt identify and some test case identifying that one.
3. Windows 7
4.x86 system i am using
those controls are wpf controls hosted in vsto control into excel application.Actuallly that is an addin to excel.
sorry we cant provide the code.Pls do the need ful asap.

Thanks ,
Sonali.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: unable to cast
Hi,
Please update to Ranorex 3.0.5 and try it again. We fixed a lot of bugs with this version.
http://www.ranorex.com/download/Ranorex-3.0.5.exe
You can send it to [email protected]
Regards,
Peter
Ranorex Team
Please update to Ranorex 3.0.5 and try it again. We fixed a lot of bugs with this version.
http://www.ranorex.com/download/Ranorex-3.0.5.exe
Without a code snippet it is hard to find out what's going wrong. Are you sure it is not possible to post or send me the code snippet of the place where this error always occur?sbaheti wrote:sorry we cant provide the code.Pls do the need ful asap.
You can send it to [email protected]
Regards,
Peter
Ranorex Team