Skip to content

Commit c2f6e64

Browse files
committed
Add files to .gitignore
1 parent c236991 commit c2f6e64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

LDK/test/src/org/labkey/test/util/external/labModules/LabModuleHelper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,8 @@ public Locator getAssayWell(String text, String color)
226226
return Locator.xpath("//div[contains(@style, '" + color + "') and normalize-space() = '" + text + "']");
227227
}
228228

229-
public String getPageText()
229+
private String removeSpaces(String text)
230230
{
231-
String text = _test.getHtmlSource();
232231
//the browser converts line breaks to spaces. this is a hack to get them back
233232
text = text.replaceAll("<[^>]+>|&[^;]+;", "");
234233
text = text.replaceAll(" {2,}", " ");
@@ -290,8 +289,9 @@ private String getExampleData(String currentWindow)
290289
{
291290
_test.getDriver().switchTo().window(handle);
292291
ret = _test.shortWait().withMessage("Unable to retrieve example data")
293-
.until(wd -> StringUtils.trimToNull(getPageText()));
292+
.until(wd -> StringUtils.trimToNull(_test.getHtmlSource()));
294293

294+
ret = removeSpaces(ret);
295295
_test.getDriver().close();
296296
_test.getDriver().switchTo().window(currentWindow);
297297
}

0 commit comments

Comments
 (0)