public override Window ModalWindow(string title, InitializeOption option)
        {
            WindowFactory desktopWindowsFactory = WindowFactory.Desktop;

            return(desktopWindowsFactory.FindModalWindow(title, Process.GetProcessById(automationElement.Current.ProcessId), option, automationElement,
                                                         WindowSession.ModalWindowSession(option)));
        }
        public override Window ModalWindow(SearchCriteria searchCriteria, InitializeOption option)
        {
            WindowFactory desktopWindowsFactory = WindowFactory.Desktop;

            return(desktopWindowsFactory.FindModalWindow(searchCriteria, option, automationElement, WindowSession.ModalWindowSession(option)));
        }
Пример #3
0
 public override Window ModalWindow(string title, InitializeOption option)
 {
     return(windowFactory.FindModalWindow(title, Process.GetProcessById(automationElement.Properties.ProcessId), option, automationElement,
                                          WindowSession.ModalWindowSession(option)));
 }