/// <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); } } }