Forum Discussion
aqAnt
12 years agoSmartBear Alumni (Retired)
Hello,
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.
Related Content
Recent Discussions
- 18 hours agodhundley