I am trying to locate the following element using href
.
<a class="compliance-documents-link-text" target="_blank" href="api/Document/GetDocumentByType/25194300-f620-4cc9-a375-419b1ebfe729/1">
<span>Acceptance Criteria</span>
</a>
I have to use href="api/Document/GetDocumentByType/25194300-f620-4cc9-a375-419b1ebfe729/1"
as I need to differentiate between different products that all have acceptance criteria but different doc links.
I currently have:
wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath("//a[@href ='api/Document/GetDocumentByType/8d844ee3-b9cc-4d5c-87ee-8363bf46164a/1']")));
but it cannot locate the element.