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)); }
public virtual TitleBar GetTitleBar(IActionListener actionListener) { AutomationElement titleElement = Finder.Child(AutomationSearchCondition.ByControlType(ControlType.TitleBar)); if (titleElement == null) { return(null); } return(new TitleBar(titleElement, actionListener)); }
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))); }
private TextBox GetTextBox() { return(new TextBox(Finder.Child(AutomationSearchCondition.ByControlType(ControlType.Edit)), actionListener)); }