Another interesting scenario I have encountered involves combining Selenium
with browsermob-proxy
:
- A new Har is created for the initial page access
- The initial request can be redirected multiple times
- And then further redirected by JavaScript
For example: Page A ---> 302 redirect to Page B ---> 200 and then JS redirect to Page C
Can a new Har be created on each redirect (either server-side or using JS)? This would ensure that a Har exists for each page and its resources.