Skip to content

Commit 9dedcbd

Browse files
committed
the right predicate this time
1 parent 2ea7928 commit 9dedcbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/org/labkey/test/Locator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ public XPathLocator withText(String text)
12491249

12501250
public XPathLocator withTextIgnoreCase(String text)
12511251
{
1252-
return this.withPredicate("contains(" + toLowerCase("normalize-space()", text) + ", "+xq(ns(text.toLowerCase()))+")");
1252+
return this.withPredicate(toLowerCase("normalize-space()", text) + "= "+xq(ns(text.toLowerCase())));
12531253
}
12541254

12551255
public XPathLocator withText()

0 commit comments

Comments
 (0)