/// <summary> /// Asserts that the element does not have the specified content. /// </summary> /// <param name="handle">An <see cref="ElementHandle"/></param> /// <param name="content">The content</param> /// <param name="message">Optional failure message</param> /// <returns>The <see cref="ElementHandle"/> for method chaining</returns> /// <remarks>Evaluates <c>node.textContent</c></remarks> public static ElementHandle ShouldNotHaveContent(this ElementHandle handle, string content, string message = null) { if (handle.HasContent(content)) { Throw.ShouldNotHaveContent(handle, message); } return(handle); }