Skip to content

Commit c389b07

Browse files
committed
Handle "undefined" href
1 parent 2f1d99a commit c389b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ehr/test/src/org/labkey/test/tests/ehr/AbstractGenericEHRTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ protected List<String> skipLinksForCrawling()
344344
private String validLink(WebElement anchor)
345345
{
346346
String href = anchor.getDomAttribute("href");
347-
if (href != null && !href.startsWith("#"))
347+
if (href != null && !href.startsWith("#") && !href.equalsIgnoreCase("undefined"))
348348
{
349349
String decodedHref = EscapeUtil.decodeUriPath(href);
350350
if (skipLinksForValidation().stream().anyMatch(s -> decodedHref.toLowerCase().contains(s.toLowerCase())))

0 commit comments

Comments
 (0)