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.
- sharma2prateek8 years agoOccasional ContributorSys.process('aa').winformsobject('bb'). winformsobject ('navgatio').ClickItem('fruit', 'apple')
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- tristaanogre8 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.
- sharma2prateek8 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");