コード例 #1
0
ファイル: Use.cs プロジェクト: adrianf223/DW.CodedUI
        /// <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));
        }
コード例 #2
0
ファイル: Use.cs プロジェクト: adrianf223/DW.CodedUI
        /// <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));
        }
コード例 #3
0
ファイル: Use.cs プロジェクト: adrianf223/DW.CodedUI
        /// <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));
        }
コード例 #4
0
ファイル: Use.cs プロジェクト: adrianf223/DW.CodedUI
        /// <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));
        }
コード例 #5
0
ファイル: Use.cs プロジェクト: adrianf223/DW.CodedUI
        /// <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));
        }
コード例 #6
0
ファイル: Use.cs プロジェクト: adrianf223/DW.CodedUI
        /// <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));
        }
コード例 #7
0
ファイル: Use.cs プロジェクト: adrianf223/DW.CodedUI
        /// <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));
        }
コード例 #8
0
ファイル: Use.cs プロジェクト: adrianf223/DW.CodedUI
        /// <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));
        }