| || |
TestComplete Invalid variant type about IDispatch
I use the Delphi develop the program and have use a third control named TdxNavbar. and was tested by test Complete.
well the question is :
and we know the TdxNavbar have a OnLinkClick Event.
so Looks like this :
procedure TMainForm.dxNavBar1LinkClick(Sender: TObject;
But I observe through the Object Browser of Test Complete and
find the dxNavBar1LinkClick procedure is:
procedure MainForm.dxNavBar1LinkClick(Sender: IDispatch;ALink: IDispatch);
well It is IDispatch type
How Can I Call this procedure In Test Complete Script ?
Anybody know ? please teach me Thanks a lot
and MY Email: firstname.lastname@example.org MSN: email@example.com
and I'm from Beijing of China
Re: TestComplete Invalid variant type about IDispatch
The behavior is caused by the fact that Sender and ALink contain information about an internal structure of the application to which TestComplete doesn't have access.
What is the purpose of your test? Probably, I will suggest a more appropriate solution to you. Also, please let me know the exact version of TestComplete and the control you are using.