@@ -795,7 +795,7 @@ default void containsText(Pattern[] expected) {
795795 */
796796 void containsText (Pattern [] expected , ContainsTextOptions options );
797797 /**
798- * Ensures the {@code Locator} points to an element with given attribute value .
798+ * Ensures the {@code Locator} points to an element with given attribute.
799799 * <pre>{@code
800800 * assertThat(page.locator("input")).hasAttribute("type", "text");
801801 * }</pre>
@@ -807,7 +807,7 @@ default void hasAttribute(String name, String value) {
807807 hasAttribute (name , value , (HasAttributeOptions ) null );
808808 }
809809 /**
810- * Ensures the {@code Locator} points to an element with given attribute value .
810+ * Ensures the {@code Locator} points to an element with given attribute.
811811 * <pre>{@code
812812 * assertThat(page.locator("input")).hasAttribute("type", "text");
813813 * }</pre>
@@ -817,7 +817,7 @@ default void hasAttribute(String name, String value) {
817817 */
818818 void hasAttribute (String name , String value , HasAttributeOptions options );
819819 /**
820- * Ensures the {@code Locator} points to an element with given attribute value .
820+ * Ensures the {@code Locator} points to an element with given attribute.
821821 * <pre>{@code
822822 * assertThat(page.locator("input")).hasAttribute("type", "text");
823823 * }</pre>
@@ -829,7 +829,7 @@ default void hasAttribute(String name, Pattern value) {
829829 hasAttribute (name , value , (HasAttributeOptions ) null );
830830 }
831831 /**
832- * Ensures the {@code Locator} points to an element with given attribute value .
832+ * Ensures the {@code Locator} points to an element with given attribute.
833833 * <pre>{@code
834834 * assertThat(page.locator("input")).hasAttribute("type", "text");
835835 * }</pre>
@@ -838,28 +838,6 @@ default void hasAttribute(String name, Pattern value) {
838838 * @param value Expected attribute value.
839839 */
840840 void hasAttribute (String name , Pattern value , HasAttributeOptions options );
841- /**
842- * Ensures the {@code Locator} points to an element with given attribute. The method will assert attribute presence.
843- * <pre>{@code
844- * assertThat(page.locator("input")).hasAttribute("disabled");
845- * assertThat(page.locator("input")).not().hasAttribute("open");
846- * }</pre>
847- *
848- * @param name Attribute name.
849- */
850- default void hasAttribute (String name ) {
851- hasAttribute (name , (HasAttributeOptions ) null );
852- }
853- /**
854- * Ensures the {@code Locator} points to an element with given attribute. The method will assert attribute presence.
855- * <pre>{@code
856- * assertThat(page.locator("input")).hasAttribute("disabled");
857- * assertThat(page.locator("input")).not().hasAttribute("open");
858- * }</pre>
859- *
860- * @param name Attribute name.
861- */
862- void hasAttribute (String name , HasAttributeOptions options );
863841 /**
864842 * Ensures the {@code Locator} points to an element with given CSS classes. This needs to be a full match or using a relaxed
865843 * regular expression.
0 commit comments