Forum Discussion

Komal_Deotale's avatar
Komal_Deotale
Occasional Contributor
7 years ago

undefined: Automation server can't create object error

since i have installed the latest version of TestComplete I am getting an error "undefined: Automation server can't create object error". It was working well with the earlier version of TC 12.30.

 

function CreateAutomationObject(strLibraryClassName)
{
// Variables
var objAutomation; // Script automation object

// Create script automation object
try {
objAutomation = new ActiveXObject(strLibraryClassName);
return(objAutomation);
}
catch (objError) {
Log.Error(StrTestID + ": " + objError.message);
Runner.Stop(0);
return(null);
}
}