File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
LDK/test/src/org/labkey/test/util/external/labModules Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments