chicks
11 years agoRegular Contributor
window was destroyed during method execution - after updating from 10.3 to 10.4
The web application that I am testing has a remove cards popup, and then a confirm remove button in the popup. After updating TestComplete from 10.3 to 10.4 I am seeing "window was destroyed during method execution" most of the time but not consistently) when I try to click on the "confirm removal" button. In this case the button is not clicked.
The website code has not changed.
My code has not changed. The only change is to TestComplete and TestExecute.
I am not using name mapping to find the objects.
================================================
parent = panel_groceryCards();
if (retailerID == FRN_PART_ID) {
parent = panel_frnCards();
}
Click(myCards_remove_link(parent, card.number ) );
Click(myCards_link_confirmRemoval() );
=========================
function myCards_link_confirmRemoval() { return my_cards().FindChild(new Array("ObjectType", "idStr"), new Array("Link", "frnRemoveCardlink"), FIND_DEPTH); }
function myCards_remove_link(parent, cardNbr) {
var temp = myCards_panel_cardNbr(parent,cardNbr);
temp.Refresh();
return temp.Parent.FindChild(new Array("ObjectType", "contentText"), new Array("Link","remove"), FIND_DEPTH);
}
function my_cards(){return Sys.Process(browserToUse).Page("*");}
=================================================
It does appear that when the removal "works" the time between the "click to brign up the popup" and the "click to confirm removal" is greater than 5 seconds. In other words, the function to find the confirm removal button is actually gets evaluated.
I am experimenting with delays and object refreshes but have not yet had any luck.