Exemple #1
0
        /// <summary>
        /// Starts searching for a window by its automation ID. By default CompareKind.Exact will be used.
        /// </summary>
        /// <param name="automationId">The automation ID to search for.</param>
        /// <returns>A combinable Use to be able to append additional conditions.</returns>
        public static CombinableUse AutomationId(string automationId)
        {
            var combinableUse = new CombinableUse();

            return(combinableUse.AutomationId(automationId));
        }
Exemple #2
0
        /// <summary>
        /// Starts searching for windows by its process name. By default the CompareKind.ContainsIgnoreCase will be use.
        /// </summary>
        /// <param name="name">The process name to search for.</param>
        /// <returns>A combinable Use to be able to append additional conditions.</returns>
        public static CombinableUse Process(string name)
        {
            var combinableUse = new CombinableUse();

            return(combinableUse.Process(name));
        }
Exemple #3
0
        /// <summary>
        /// Starts searching for windows by its process name.
        /// </summary>
        /// <param name="name">The process name to search for.</param>
        /// <param name="comparison">The comparison kind how the window title will be compared.</param>
        /// <returns>A combinable Use to be able to append additional conditions.</returns>
        public static CombinableUse Process(string name, CompareKind comparison)
        {
            var combinableUse = new CombinableUse();

            return(combinableUse.Process(name, comparison));
        }
Exemple #4
0
        /// <summary>
        /// Starts searching for windows by its title.
        /// </summary>
        /// <param name="title">The window title to search for.</param>
        /// <param name="comparison">The comparison kind how the window title will be compared.</param>
        /// <returns>A combinable Use to be able to append additional conditions.</returns>
        public static CombinableUse Title(string title, CompareKind comparison)
        {
            var combinableUse = new CombinableUse();

            return(combinableUse.Title(title, comparison));
        }
Exemple #5
0
        /// <summary>
        /// Starts searching for windows by its title. By default the CompareKind.ContainsIgnoreCase will be use.
        /// </summary>
        /// <param name="title">The window title to search for.</param>
        /// <returns>A combinable Use to be able to append additional conditions.</returns>
        public static CombinableUse Title(string title)
        {
            var combinableUse = new CombinableUse();

            return(combinableUse.Title(title));
        }
Exemple #6
0
        /// <summary>
        /// Starts searching for a window which contains the given element.
        /// </summary>
        /// <param name="element">The element to start the window search for.</param>
        /// <returns>A combinable Use to be able to append additional conditions.</returns>
        public static CombinableUse ContainingElement(BasicElement element)
        {
            var combinableUse = new CombinableUse();

            return(combinableUse.ContainingElement(element));
        }
Exemple #7
0
        /// <summary>
        /// Starts searching for windows by a custom condition.
        /// </summary>
        /// <param name="condition">The window condition to be used for compare.</param>
        /// <returns>A combinable Use to be able to append additional conditions.</returns>
        public static CombinableUse Condition(Predicate <BasicWindow> condition)
        {
            var combinableUse = new CombinableUse();

            return(combinableUse.Condition(condition));
        }
Exemple #8
0
        /// <summary>
        /// Starts searching for a window by its automation ID.
        /// </summary>
        /// <param name="automationId">The automation ID to search for.</param>
        /// <param name="comparison">The comparison kind how the automation ID will be compared.</param>
        /// <returns>A combinable Use to be able to append additional conditions.</returns>
        public static CombinableUse AutomationId(string automationId, CompareKind comparison)
        {
            var combinableUse = new CombinableUse();

            return(combinableUse.AutomationId(automationId, comparison));
        }