상속: Element
예제 #1
0
파일: Application.cs 프로젝트: mono/uia2atk
		public Window FindGtkSubWindow (Window mainWindow, string name)
		{
			AndCondition cond = new AndCondition (
			                        new PropertyCondition (AutomationElementIdentifiers.ProcessIdProperty, 
			                                               mainWindow.AutomationElement.Current.ProcessId), 
			                        new PropertyCondition (AutomationElementIdentifiers.ControlTypeProperty, 
			                                               ControlType.Window), 
			                        new PropertyCondition (AutomationElementIdentifiers.NameProperty, name));

			var ae = AutomationElement.RootElement.FindFirst (TreeScope.Children, cond);
			return new Window (ae);
		}
예제 #2
0
		protected override void OnSetup ()
		{
			base.OnSetup ();

			string name = Environment.GetEnvironmentVariable ("MOON_A11Y_BROWSER_NAME");
			if (name == null) {
				name = "Mozilla Firefox";
				Console.WriteLine ("** MOON_A11Y_BROWSER_NAME environment variable not found. Defaulting to {0}.", name);
			}

			//string title = string.Format ("{0} - Mozilla Firefox", Sample);
			window = application.GetWindow (Title);
		}
예제 #3
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();
		}
예제 #4
0
		protected override void OnSetup ()
		{
			base.OnSetup ();
			window = app.GetWindow ("DockPattern Test");
		}
예제 #5
0
		protected override void OnSetup ()
		{
			base.OnSetup ();
			window = app.GetWindow ("WindowPattern and TransformPattern Test");
		}
예제 #6
0
 protected override void OnSetup()
 {
     base.OnSetup ();
     window = GetWindow("KeePass Password Safe");
 }
예제 #7
0
파일: FSpot.cs 프로젝트: mono/uia2atk
		protected override void OnSetup ()
		{
			base.OnSetup ();
			window = app.GetWindow ("F-Spot");
		}