Forum Discussion
Can you share your code that you have specifically that generates the error? Not just the clickitem line, but everything leading up to it.
There is, technically, no difference on that method for VBScript versus JavaScript so this probably means it has something to do with your implementation. But we won't know until we see the code.
This is the whole code,in vbscript project same code is working but in JavaScript project it's not working actually those are developer express controls in that we need to work with witems property, collapse and expand method working fine
- tristaanogre6 years agoEsteemed Contributor
So, your application is called "aa" with a form called "bb" and you're specifically testing an application that selects "fruit"?
That's what I mean... i'd like to see, if possible the ACTUAL code you're executing to see syntax, context, etc., of how it is implemented in your test. It could be that how you're attempting to implement in JavaScript is doing something that is "illegal" in JavaScript, causing your issue.
Please provide, if possible, "real" code and we'll see what we can do.
- sharma2prateek6 years agoOccasional Contributor
Hi,
Its a test complete issue, Actually below VB script code is working fine
Sys.Process("DesktopClient").WinFormsObject("DesktopMain").WinFormsObject("toolboxDockPanel").WinFormsObject("NewDockPanel1").WinFormsObject("_Container").WinFormsObject("navBarControl2").ClickItem "Interest Rate","Swap"
but below javascript code sometime its worked, sometime throws Member Not Found error or sometime throws Type Mismatch error so really don't know whats going on
Sys.Process("DesktopClient").WinFormsObject("DesktopMain").WinFormsObject("toolboxDockPanel").WinFormsObject("NewDockPanel1").WinFormsObject("_Container").WinFormsObject("navBarControl2").ClickItem("Interest Rate","Swap");
- sharma2prateek6 years agoOccasional Contributor
WinFormsObject("navBarControl2").WndClass = WindowsForms10.Window.8.app.0.282af8c_r28_ad1
WinFormsObject("navBarControl2").wItems.Count =
Error: Error
An error occurred.
Possible reasons:
1. The application stopped responding.
2. The application was compiled incorrectly (see the Open Applications topic in the help system).
3. An error occurred in TestComplete/TestExecute.Technical information:
97 0x80020006 (Unknown name.) BarsWinFormsObject("navBarControl2").ClrFullClassName =DevExpress.XtraNavBar.NavBarControl
Related Content
- 2 years agotorus
- 2 years agodavid-beltran
Recent Discussions
- 8 hours agoSubhraDas