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