/// <summary> /// Expand TreeNode /// </summary> public void Expand() { ReportAction("Expand Node"); if (!UIItem.IsExpanded()) { try { UIItem.Expand(); } catch (Exception ex) { if (ex is AutomationException || ex is NullReferenceException) { return; } CaptureImage(); throw; } } CaptureImage(); }