Forum Discussion
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!
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.
}
- rraghvani5 months ago
Champion Level 3
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.
- GsCoder5 months agoOccasional Contributor
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!- rraghvani5 months ago
Champion Level 3
The issue is with TestComplete, it will not work. It will not work for any users, using TestComplete.