Inheritance: Element
コード例 #1
0
 public static void Init()
 {
     actionBuffer = new StringBuilder ();
     expectedResultBuffer = new StringBuilder ();
     procedures = new List<List<string>> ();
     startTime = DateTime.Now;
 }
コード例 #2
0
ファイル: Application.cs プロジェクト: mono/uia2atk
		public Window [] FindAllGtkSubWindow (Window mainWindow, string name)
		{
			List<Window> retval = new List<Window> ();
			AndCondition cond = new AndCondition (
			                        new PropertyCondition (AutomationElementIdentifiers.ProcessIdProperty, 
			                                               mainWindow.AutomationElement.Current.ProcessId), 
			                        new PropertyCondition (AutomationElementIdentifiers.ControlTypeProperty, 
			                                               ControlType.Window), 
			                        new PropertyCondition (AutomationElementIdentifiers.NameProperty, name));
			var elements = AutomationElement.RootElement.FindAll (TreeScope.Children, cond);
			foreach (AutomationElement ae in elements) {
				retval.Add (new Window (ae));
			}
				
			return retval.ToArray();
		}