Based on most of the answers i have seen, the solution here seems to be the way to go Wait for page load in Selenium . This makes sense, but it isn't working for me. I have a website written in Angular JS and i am trying to navigate through the a paginated list of results. Clicking the link to the next page just reloads a div and doesn't actually trigger a page load. The content on page 1 is different to page 2, but in terms of HTML, there isn't an element i can check for to know if the next page is up or not.
As a temporary fix, i have put a 3 second thread sleep into the navigation so that by the time the thread has woken up, phantomJS has rendered the new content. This is of course a bad fix since it usually takes less than a second, but cold potentially take a few seconds longer some day.
I was wondering if angular communicates with the dom in a way that allows phantomJS to read it and figure out the status?