"Can't find variable ActiveXObject"

Last edited on

Squish uses its own JavaScript interpreter.

Objects such as ActiveXObjects are extensions provided by the Windows Scripting Host's JavaScript interpreter and are therefore not available in Squish test scripts.

It is still possible to execute such commands by using Squish's OS.system() and OS.capture() functions. For example:


It is even possible to execute Visual Basic scripts using this approach: