public virtual Window SplashWindow(Process process)
        {
            var automationSearchCondition = AutomationSearchCondition.ByControlType(ControlType.Pane).WithProcessId(process.Id);
            var message = "No control found matching the condition " + AutomationSearchCondition.ToString(new[] { automationSearchCondition }) + Constants.BusyMessage;
            var element = WaitTillFound(() => Finder.Child(automationSearchCondition), message);

            return(new SplashWindow(element, InitializeOption.NoCache));
        }
Esempio n. 2
0
        public virtual TitleBar GetTitleBar(IActionListener actionListener)
        {
            AutomationElement titleElement = Finder.Child(AutomationSearchCondition.ByControlType(ControlType.TitleBar));

            if (titleElement == null)
            {
                return(null);
            }
            return(new TitleBar(titleElement, actionListener));
        }
Esempio n. 3
0
        private bool TryGetPopupMenu(AutomationSearchCondition[] searchConditions, IActionListener actionListener, out PopUpMenu popUpMenu)
        {
            var element = Retry.For(() => Finder.Child(searchConditions), CoreAppXmlConfiguration.Instance.PopupTimeout(), TimeSpan.FromMilliseconds(100));

            if (element == null)
            {
                popUpMenu = null;
                return(false);
            }
            popUpMenu = new PopUpMenu(element, actionListener);
            return(true);
        }
 private AutomationElement EditableElement()
 {
     return(Finder.Child(AutomationSearchCondition.ByControlType(ControlType.Edit)));
 }
Esempio n. 5
0
 private TextBox GetTextBox()
 {
     return(new TextBox(Finder.Child(AutomationSearchCondition.ByControlType(ControlType.Edit)), actionListener));
 }