/// <summary> /// Start Test Mode /// </summary> /// <returns></returns> void StartTestMode(TestView view) { if (view != TestView.NoSelection) { if (SelectAction.GetDefaultInstance().IsPaused) { ClearOverlayDriver.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 (_lockObject) { if (HollowHighlightDriver.GetDefaultInstance().IsEnabled) { var overlayDriver = ClearOverlayDriver.GetDefaultInstance(); ClearOverlayDriver.BringMainWindowOfPOIElementToFront(); overlayDriver.MarkElement(ele); } } }