Forum Discussion
ArtemS
Alumni
14 years agoHello
You'd better not try modifying or deleting files of the currently opened project outside from TestComplete, since this may corrupt the project.
To manage the Regions collection from tests, use the Regions scripting object. For example, to remove all existing images from the Regions collection:
You'd better not try modifying or deleting files of the currently opened project outside from TestComplete, since this may corrupt the project.
To manage the Regions collection from tests, use the Regions scripting object. For example, to remove all existing images from the Regions collection:
function ClearRegions()
{
var RemoveFromDisk = true;
while (Regions.Count()>0)
Regions.Remove(Regions.NameByIndex(Regions.Count()-1), RemoveFromDisk);
}