Example #1
0
        /// <summary>
        /// Starts the search for the UI element by the name. By default CompareKind.Exact will be used.
        /// </summary>
        /// <param name="className">The class name to search for.</param>
        /// <returns>A combinable By to be able to append additional conditions.</returns>
        /// <exception cref="System.ArgumentException">className is null, empty or just whitespaces.</exception>
        public static CombinableBy ClassName(string className)
        {
            var combinableBy = new CombinableBy();

            return(combinableBy.ClassName(className));
        }
Example #2
0
        /// <summary>
        /// Starts the search for the UI element by the name.
        /// </summary>
        /// <param name="className">The class name to search for.</param>
        /// <param name="comparison">The comparison kind how the class name will be compared.</param>
        /// <returns>A combinable By to be able to append additional conditions.</returns>
        /// <exception cref="System.ArgumentException">className is null, empty or just whitespaces.</exception>
        public static CombinableBy ClassName(string className, CompareKind comparison)
        {
            var combinableBy = new CombinableBy();

            return(combinableBy.ClassName(className, comparison));
        }