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); }
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); }
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(); }
protected override void OnSetup () { base.OnSetup (); window = app.GetWindow ("DockPattern Test"); }
protected override void OnSetup () { base.OnSetup (); window = app.GetWindow ("WindowPattern and TransformPattern Test"); }
protected override void OnSetup() { base.OnSetup (); window = GetWindow("KeePass Password Safe"); }
protected override void OnSetup () { base.OnSetup (); window = app.GetWindow ("F-Spot"); }