Skip to content

Conversation

@labkey-bpatel
Copy link
Contributor

Rationale

testCrawlEhrLinks() failure
https://teamcity.labkey.org/buildConfiguration/LabkeyTrunk_EhrPostgres/3766798

org.openqa.selenium.StaleElementReferenceException
...
at app//org.labkey.test.tests.ehr.AbstractGenericEHRTest.validatePageLinks(AbstractGenericEHRTest.java:448)
at app//org.labkey.test.tests.ehr.AbstractGenericEHRTest.testCrawlEhrLinks(AbstractGenericEHRTest.java:480)

The links are probably still getting loaded when the page is rendered and updating the DOM causing StaleElementReferenceException.

Related Pull Requests

Changes

  • Wait for DOM to fully load

Copy link
Member

@labkey-tchad labkey-tchad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is redundant; beginAt already does this wait. https://github.com/LabKey/testAutomation/blob/develop/src/org/labkey/test/WebDriverWrapper.java#L2017

This sort of thing is very unlikely to cause a stale element problem. I think the problem here is that some link is navigating instead of opening in a new tab like AbstractGenericEHRTest.verifyLInk expects. That causes the elements found at the top of validatePageLinks to go stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants