public static bool Exec(AutomationWindow automationWindow) { automationWindow.CreateView("Item View", string.Empty); System.Threading.Thread.Sleep(10000); automationWindow.ClearViewItems("Item View"); return(true); }
public static bool Teardown(AutomationWindow window) { bool result; result = window.ClearViewItems("Item View"); if (result == false) { Console.WriteLine("Error ClearViewItems: " + window.GetLastErrorString()); } return(result); }