diff --git a/src/org/labkey/test/BaseWebDriverTest.java b/src/org/labkey/test/BaseWebDriverTest.java index 0d5214b414..cec151afd0 100644 --- a/src/org/labkey/test/BaseWebDriverTest.java +++ b/src/org/labkey/test/BaseWebDriverTest.java @@ -1903,7 +1903,7 @@ public void setPipelineRoot(String rootPath, boolean inherit) { _setPipelineRoot(rootPath, inherit); - waitForElement(Locators.labkeyMessage.withText("The pipeline root was set to '" + Paths.get(rootPath).normalize() + "'")); + waitForElement(Locators.labkeyMessage.withTextIgnoreCase("The pipeline root was set to '" + Paths.get(rootPath).normalize() + "'")); getArtifactCollector().addArtifactLocation(new File(rootPath)); diff --git a/src/org/labkey/test/Locator.java b/src/org/labkey/test/Locator.java index 8bcf8b532a..8acc80db17 100644 --- a/src/org/labkey/test/Locator.java +++ b/src/org/labkey/test/Locator.java @@ -1247,6 +1247,11 @@ public XPathLocator withText(String text) return this.withPredicate("normalize-space()="+xq(ns(text))); } + public XPathLocator withTextIgnoreCase(String text) + { + return this.withPredicate(toLowerCase("normalize-space()", text) + "= "+xq(ns(text.toLowerCase()))); + } + public XPathLocator withText() { return this.withPredicate("string-length() > 0");