Пример #1
0
 public void RunMirrorGainAdjustment()
 {
     StartMirrorGainAdjustment();
     WaitHelpers.WaitSeconds(45);
     ClickRadioButton(FT1UiItems.ShortScanRadioButton, mirrorGainAdjustmentDialog);
     WaitHelpers.WaitSeconds(45);
     ClickButton(FT1UiItems.StoreButton, mirrorGainAdjustmentDialog);
 }
Пример #2
0
 public void RunFilterTest()
 {
     StartFilterTest();
     WaitHelpers.WaitSeconds(30);
     ClickButton(FT1UiItems.StartButton, filterTestDialog);
     WaitHelpers.WaitSeconds(10);
     ClickButton(FT1UiItems.StoreButton, filterTestDialog);
     WaitHelpers.WaitSeconds(10);
     ClickButton(FT1UiItems.ExitButton, filterTestDialog);
 }
Пример #3
0
 public Window GetMainWindow(string processName, string windowName)
 {
     try
     {
         logger.LogInfo("Finding window {0} in {1}", windowName, processName);
         Application novaApp = GetApplication(processName);
         WaitHelpers.WaitFor(() => WindowsForProcess(processName).Contains(windowName), TimeSpan.FromMinutes(30), TimeSpan.FromMinutes(1));
         WaitHelpers.WaitSeconds(10);
         // WaitHelpers.WaitFor(() => novaApp.GetWindows().Count > 0, TimeSpan.FromMinutes(30));
         logger.LogInfo("Window for {0} is found.", novaApp.Name);
         Window window = novaApp.GetWindow(windowName);
         logger.LogInfo("Nova window {0} is found", window.Title);
         return(window);
     }
     catch (Exception e)
     {
         logger.LogError("GetMainWindow failed with exception: {0}. \nInner exception {1}", e.Message,
                         e.InnerException.Message);
         throw;
     }
 }