Inheritance: 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
ファイル: MoonlightTestBase.cs プロジェクト: mono/uia2atk
		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
ファイル: DockPatternTests.cs プロジェクト: mono/uia2atk
		protected override void OnSetup ()
		{
			base.OnSetup ();
			window = app.GetWindow ("DockPattern Test");
		}
コード例 #5
0
ファイル: WindowPatternTests.cs プロジェクト: mono/uia2atk
		protected override void OnSetup ()
		{
			base.OnSetup ();
			window = app.GetWindow ("WindowPattern and TransformPattern Test");
		}
コード例 #6
0
ファイル: KeePassTests.cs プロジェクト: raywang/UIAClientAPI
 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");
		}