diff --git a/src/main/java/com/xceptance/neodymium/util/SelenideAddons.java b/src/main/java/com/xceptance/neodymium/util/SelenideAddons.java index d956b977f..11b8327e3 100644 --- a/src/main/java/com/xceptance/neodymium/util/SelenideAddons.java +++ b/src/main/java/com/xceptance/neodymium/util/SelenideAddons.java @@ -273,7 +273,7 @@ private static boolean isThrowableCausedBy(final Throwable throwable, Class$("input").waitWhile(matchesValue("foo"), 12000) *

* + * @deprecated Not needed anymore since it's supported by Selenide. Will be removed with the next major version. Use + * com.codeborne.selenide.Condition.attributeMatching instead. * @param attributeName * The name of the attribute that should contain the text * @param text @@ -308,6 +310,7 @@ public static Condition matchValue(final String regex) * @return a Selenide {@link Condition} * @see #matchAttribute(String, String) */ + @Deprecated public static Condition matchesAttribute(String attributeName, String text) { return matchAttribute(attributeName, text); @@ -320,7 +323,9 @@ public static Condition matchesAttribute(String attributeName, String text) * Sample: Assert that given element's value attribute matches given regular expression * $("input").should(matchValue("Hello\s*John")) *

- * + * + * @deprecated Not needed anymore since it's supported by Selenide. Will be removed with the next major version. Use + * com.codeborne.selenide.Condition.attributeMatching instead. * @param attributeName * The name of the attribute that should be matched with the regex * @param regex @@ -328,6 +333,7 @@ public static Condition matchesAttribute(String attributeName, String text) * etc. * @return a Selenide {@link Condition} */ + @Deprecated public static Condition matchAttribute(final String attributeName, final String regex) { return new Condition("match " + attributeName)