Esempio n. 1
0
        /// <summary>
        /// Looks at all the windows visible for the application and finds one which matches the condition. The match is run against the title
        /// of the windows
        /// </summary>
        /// <param name="match"></param>
        /// <param name="initializeOption">option for the window which matches the condition</param>
        /// <exception cref="UIItemSearchException">The application type is not supported by White</exception>
        public virtual Window Find(Predicate <string> match, InitializeOption initializeOption)
        {
            WindowSession windowSession = applicationSession.WindowSession(initializeOption);

            return(windowFactory.FindWindow(process, match, initializeOption, windowSession));
        }