Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 18th, 2012  |  syntax: None  |  size: 0.90 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. White Automation-
  2. {
  3.         Application manager = Application.Launc(@"C:\");
  4.         Window mainWindow = manager.GetWindow("");
  5.  
  6.         Simulation(mainWindow);
  7.         ZepSelect(mainWindow);
  8.  
  9.         manager.Kill();
  10.  
  11.     }
  12.     //simulation mode
  13.     private static void Simulation(Window mainWindow)
  14.     {
  15.         Window Sim = mainWindow.ModalWindow("");
  16.         var searchCriteria = SearchCriteria.ByText("");
  17.         var button = Sim.Get<Button>(searchCriteria);
  18.         button.Click();
  19.     }
  20. //end simulation
  21.     private static void ZephyrSelect(Window mainWindow)
  22.     {
  23.         Window ZephOp = mainWindow.ModalWindow("");
  24.         var searchCriteria1 = SearchCriteria.ByText("");
  25.         var Zeph = ZephOp.Get<TreeNode>(searchCriteria1);
  26.         Zephyr.Click();
  27.  
  28.         var searchCriteria2 = SearchCriteria.ByText("");
  29.         var button = ZephOp.Get<Button>(searchCriteria2);
  30.         button.Click();
  31.     }