Forum Discussion
hi
When i am doing this manually it is working properly without any problem.
Excel is getting crashed only when i am using test complete.
In below code i am clicking on different tabs for switching using a loop :
for(var i = 0; i < 4; i++)
{
Sys.Process("iexplore").Page("*").Panel(2).Panel(0).Panel("docEmbed").Panel("packageTabs").Panel("tabObjectName_" + i).Click();
Delay(5000);
if(i == 0)
{
fn_Element_Instance(counter);
counter++;
}
else if(i == 3)
{ Delay(5000);
fn_Element_Instance_Excel(counter);
counter++;
}
else
{
for(var j = 0; j < 2; j++)
{
fn_Element_Instance(counter);
counter++;
}
}
}
thanks
What's in fn_Element_Instance_Excel? It seems that would be where the problem would be since that is the only code that would explictly be doing anything with Excel.