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 ex
*/
public static Condition matchesValue(String text)
{
- return matchValue(text);
+ return matchValue(".*" + text + ".*");
}
/**
@@ -291,7 +291,7 @@ public static Condition matchesValue(String text)
*/
public static Condition matchValue(final String regex)
{
- return matchesAttribute("value", regex);
+ return Condition.attributeMatching("value", regex);
}
/**
@@ -301,6 +301,8 @@ public static Condition matchValue(final String regex)
* Sample: $("input").waitWhile(matchesValue("foo"), 12000)
*
$("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)