-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPA without Page navigation events? #52
Comments
Hi @kohlerm in Browsertime we inject a navigation event in the trace, I think you should do that in the trace from Puppeteer too. Best |
interested to know how to resolve for SPA.. Thanks |
Hi @nathdebashish sorry for the late reply, missed your comment. |
The problem is that the trace log events aren't sorted and can come in different order. For example if you test two pages, clear the log after each URL but keep Chrome open, it can happen that you get an event for the first URL when you test the second one, that breaks Tracium for example, and I think we haven't had the best handling for that either. @kohlerm if you have some better error handling than today it would be super if you could PR it back :) |
I ran into sitespeedio/sitespeed.io#2645 and fixed it in similiar way. |
I'm trying to automate a test with puppeteer where I generate a har file after each interaction step.
Since it is an SPA I do not get Page navigation events. Because of that I do not get any results except for the intial page where I do have a page event. During debugging I could see that the events are captured but the nr. of pages is 0.
It also does not seem to be related to puppeteer because I checked the events when manually navigating the page.
Any hints what I can do?
I can maybe clone the code and throw out all page event handling, because effectively I do not need those events.
Any better option?
The text was updated successfully, but these errors were encountered: