//TODO Try and get this working
        //public override List<Window> ModalWindows()
        //{
        //    var automationSearchConditions = new AutomationSearchConditionFactory()
        //        .GetWindowSearchConditions(automationElement.Current.ProcessId)
        //        .ToArray();

        //    var descendants = new AutomationElementFinder(automationElement)
        //        .Children(automationSearchConditions);

        //    return descendants
        //        .Select(descendant => ChildWindowFactory.Create(descendant, InitializeOption.NoCache, WindowSession.ModalWindowSession(InitializeOption.NoCache)))
        //        .ToList();
        //}

        public override Window ModalWindow(SearchCriteria searchCriteria, InitializeOption option)
        {
            return(windowFactory.ModalWindow(searchCriteria, option, WindowSession.ModalWindowSession(option)));
        }
Exemplo n.º 2
0
 public override Window ModalWindow(string title, InitializeOption option)
 {
     return(windowFactory.ModalWindow(title, option, WindowSession.ModalWindowSession(option)));
 }