Forum Discussion
aqAnt
Alumni
14 years agoHello,
I suggest that you delete an item in your control in the following way:
// ...
PropArray = new Array("ClrClassName", "Content");
ValuesArray = new Array("ComboBoxItem", "ItemTitle");
var w = Sys.Process("TestedApp").FindChild(PropArray, ValuesArray, 20);
if (w.Exists)
{
w.ClickR();
w.PopupMenu.Click("Delete");
}
// ...
Once the Delete context menu item is selected, please make sure that TestComplete handles the confirmation message properly before accessing the main window's objects.