"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:

OS.system("C:\some_wsh_js_script.js");

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

OS.system("C:\some_wsh_vb_script.vb");