Inheritance: Element
Beispiel #1
0
		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);
		}
Beispiel #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);
		}
Beispiel #3
0
		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();
		}
Beispiel #4
0
		protected override void OnSetup ()
		{
			base.OnSetup ();
			window = app.GetWindow ("DockPattern Test");
		}
Beispiel #5
0
		protected override void OnSetup ()
		{
			base.OnSetup ();
			window = app.GetWindow ("WindowPattern and TransformPattern Test");
		}
Beispiel #6
0
 protected override void OnSetup()
 {
     base.OnSetup ();
     window = GetWindow("KeePass Password Safe");
 }
Beispiel #7
0
		protected override void OnSetup ()
		{
			base.OnSetup ();
			window = app.GetWindow ("F-Spot");
		}