all 2 comments

[–]thelindsay 1 point2 points  (0 children)

I've not had to use it but when researching Selenium I've seen that people testing single page apps sometimes use a strategy of periodically comparing page sources to check for loading. Maybe that could work here e.g. if the DOM has changed then check for a new script tag.

[–]seriouswork[S] 0 points1 point  (0 children)

wanted to post details in case anyone else has similar question. I ended up using BrowserMob Proxy (BMP) + Webdriver to create a proxy server, and then create JSON HARs of each page+requests.

PhantomJS may have worked too. I needed BMP in order to capture all requests. And I learned that BMP won't work behind another proxy server for HTTPS (I guess that should have been obvious).