/// <summary>
        /// Asserts that the element does not have the specified class.
        /// </summary>
        /// <param name="handle">An <see cref="ElementHandle"/></param>
        /// <param name="className">The class name</param>
        /// <param name="message">Optional failure message</param>
        /// <returns>The <see cref="ElementHandle"/> for method chaining</returns>
        public static ElementHandle ShouldNotHaveClass(this ElementHandle handle, string className, string message = null)
        {
            if (handle.HasClass(className))
            {
                Throw.ShouldNotHaveClass(handle, message);
            }

            return(handle);
        }