Disappearing Code Completion Popup

Originally posted by GsCoder on August 06, 2025

Typing “sys.”, “log.” or even “aq” correctly displays the Code Completion popup with items as expected. However for JavaScript classes defined in the same file the Code Completion popup opens briefly and disappears.

This should be working, yes? (see images attached)

Originally posted by rraghvani on August 06, 2025

TestComplete uses an older version of the JavaScript engine, and doesn’t support modern ES6 class syntax. It’s how TestComplete’s script engine and IntelliSense work!

Originally posted by Hassan_Ballan on August 06, 2025

TestComplete’s JavaScript engine, which is powered by the V8 engine (version 5.8), offers IntelliSense capabilities within its Code Editor.

**Limitations with Custom Objects and External Packages:**While IntelliSense works well for built-in TestComplete objects and standard JavaScript features, it may have limitations with custom-defined objects, classes, or external JavaScript packages, requiring manual reference to documentation or other workarounds.

**Script Extensions:**TestComplete allows for the creation of script extensions, which can be used to provide IntelliSense for custom objects or functionalities, enhancing the coding experience for specific project needs.

:robot: AI-assisted response

:speech_balloon: Found the answer helpful? Give it a Kudos by clicking Like!
:white_check_mark: Got your issue resolved? Click Mark as Solution so others can find it quickly.

Originally posted by GsCoder on August 06, 2025

Thanks for your reply! The below example does not work for me. Please try for yourself. Seems it should work with this older syntax.

const demoClass = {
Prop1: “Property 1”,
Prop2: “Property 2”
}

function Demo(){
//1) type the “.” to get code completion
//2) does popup show Prop1 & Prop2?
demoClass.
}

Originally posted by GsCoder on August 06, 2025

Thanks for your reply! The below example does not work for me. Please try for yourself. Seems it should work with this older syntax.

const demoClass = {
Prop1: “Property 1”,
Prop2: “Property 2”
}

function Demo(){
//1) type the “.” to get code completion
//2) does popup show Prop1 & Prop2?
demoClass.
}

Originally posted by rraghvani on August 07, 2025

Thanks for the code, but it’s not going to work for me either! As I’m using the same JavaScript engine that comes with TestComplete.

Originally posted by GsCoder on August 07, 2025

Thanks for your reply, it’s greatly appreciated. Perhaps instead you would share with me an example of JavaScript code that DOES work (code completion shows) with the JavaScript engine that comes with TestComplete. Specifically, a class with 2 properties and if possible a function too. You can copy my code and adjust to whatever syntax you know DOES work with the JavaScript engine that comes with TestComplete.
Thanks in advance!

Originally posted by rraghvani on August 07, 2025

The issue is with TestComplete, it will not work. It will not work for any users, using TestComplete.

Originally posted by GsCoder on August 07, 2025

Thank you again for your time.
I thought from your previous post if the code implemented adhered to the version of JavaScript that TestComplete uses that it would work.

Are you saying that it does not work for JavaScript at all?

Originally posted by rraghvani on August 07, 2025

No problems. I should have been clearer as opposed to giving a technical answer.

The JavaScript engine built into TestComplete cannot be changed by end users. A future version of TestComplete may include an updated JavaScript engine that supports IntelliSense features. However, this largely depends on the capabilities of the code editor being used - such as providing intelligent code completion, quick information, and parameter hints while writing code.

Originally posted by Hassan_Ballan on August 07, 2025

I should have highlight that it would not work as you would expect in full fledged editor. In the limitation I did mention classes.