Exemplo n.º 1
0
        /// <summary>
        /// The WindowFinder is searching for windows again and again as soon the timeout is not ellapsed. This defines the wait time beween each search run.
        /// </summary>
        /// <param name="milliseconds">The wait time in milliseconds between the searches</param>
        /// <returns>A combinable And to be able to append additional settings.</returns>
        public static CombinableAnd Interval(uint milliseconds)
        {
            var combinableWith = new CombinableAnd();

            return(combinableWith.Interval(milliseconds));
        }
Exemplo n.º 2
0
        /// <summary>
        /// If multiple windows got found the N. window get returned.
        /// </summary>
        /// <param name="instanceNumber">The instance number N.</param>
        /// <returns>A combinable And to be able to append additional settings.</returns>
        public static CombinableAnd InstanceNumber(uint instanceNumber)
        {
            var combinableAndSetting = new CombinableAnd();

            return(combinableAndSetting.InstanceNumber(instanceNumber));
        }
Exemplo n.º 3
0
        /// <summary>
        /// The window should be searched again and again as long this timeout is not elapsed.
        /// </summary>
        /// <param name="milliseconds">The timeout in milliseconds.</param>
        /// <returns>A combinable And to be able to append additional settings.</returns>
        public static CombinableAnd Timeout(uint milliseconds)
        {
            var combinableAndSetting = new CombinableAnd();

            return(combinableAndSetting.Timeout(milliseconds));
        }
Exemplo n.º 4
0
        /// <summary>
        /// If the window is not found no exception has to be thrown. In this case the Search returns null.
        /// </summary>
        /// <returns>A combinable And to be able to append additional settings.</returns>
        public static CombinableAnd NoAssert()
        {
            var combinableAndSetting = new CombinableAnd();

            return(combinableAndSetting.NoAssert());
        }
Exemplo n.º 5
0
        /// <summary>
        /// The WindowFinder is searching for windows again and again as soon the timeout is not ellapsed. This defines that there is no wait time between each search run.
        /// </summary>
        /// <returns>A combinable And to be able to append additional settings.</returns>
        public static CombinableAnd NoInterval()
        {
            var combinableWith = new CombinableAnd();

            return(combinableWith.NoInterval());
        }