Need help with creating script extension.
Note: unfortunately this board does not allow to credit more than one person for the solution. I would like to recognize both Robert and Shankar for finding the solution for me. Kudos to you both, I really appreciate it.
I have attached the script file and the description.XML for reference. I’m trying to create an extension for all menu items across the application. After changing the .zip extension .tcx I have placed the extension in C:\Program Files (x86)\SmartBear\TestComplete 12\Bin\Extensions\ScriptExtensions. Launched TestComplete, under File menu>Install Script Extension, made sure that SWCE Menu has the check mark.
When I try to call one of those menu items with following code, I get an error “object doesn’t support this property are method”.
menuSWCE.Menu.menuGroups();
While typing ‘menuSWCE’ and ‘Menu’, autocomplete pops up but not for ‘menuGroups’.
I’ve been through all the documentation, but I’m sure I’m missing something. I’m making some silly mistake that I cannot figure out. I would really appreciate any help.
Thanks.
Dave
P.S.: I will be in meetings good portion of the day. Replying to my problem might be delayed, thanks for understanding.
Your regular expression in the above example is different from your regular expression in your original code. Please make sure that Navigation.js is using the same regular expression that works in your normal project.