/// <summary>
        /// Start Test Mode
        /// </summary>
        /// <returns></returns>
        void StartTestMode(TestView view)
        {
            if (view != TestView.NoSelection)
            {
                if (SelectAction.GetDefaultInstance().IsPaused)
                {
                    HighlightOverlayAction.BringMainWindowOfPOIElementToFront();
                }
                HandlePauseButtonToggle(true);
            }
            switch (view)
            {
            case TestView.NoSelection:
                StartTestNoSelection();
                break;

            case TestView.AutomatedTestResults:
                StartTestAutomatedChecksView();
                break;

            case TestView.TabStop:
                break;

            case TestView.ElementDetails:
                StartElementDetailView();
                break;

            case TestView.ElementHowToFix:
                StartElementHowToFixView();
                break;
            }
        }
 /// <summary>
 /// Mark selected element
 /// </summary>
 public void MarkElement(A11yElement ele)
 {
     lock (this)
     {
         if (HighlightAction.GetDefaultInstance().IsEnabled)
         {
             var ha = HighlightOverlayAction.GetDefaultInstance();
             HighlightOverlayAction.BringMainWindowOfPOIElementToFront();
             ha.MarkElement(ele);
         }
     }
 }
        /// <summary>
        /// Sets element context and updates UI
        /// </summary>
        /// <param name="ec"></param>
        public void SetElement()
        {
            var ecId = SelectAction.GetDefaultInstance().GetSelectedElementContextId();

            if (ecId.HasValue)
            {
                ElementContext ec = GetDataAction.GetElementContext(ecId.Value);
                this.ElementContext = ec;
                var brush = Application.Current.Resources["HLTextBrush"] as SolidColorBrush;
                var ha    = HighlightOverlayAction.GetDefaultInstance();
                ha.SetElement(ElementContext.Element, brush, null, 0);
                if (this.IsVisible && HighlightVisibility)
                {
                    ha.Show();
                }
            }
        }