A Selenium test for a single-page application (SPA) clicks a link that updates the view without changing the URL. The next page's content doesn't load in the assertion. The fix is:
-
A
Use driver.navigate().to() to force navigation
-
B
Wait for a stale element exception then re-locate the target element
-
C
Wait for a unique element on the new view to become present
-
D
Refresh the browser after the click