
--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
To post to this group, send email to headle...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/CAMXyk4_vZJs4h_DGr2JtdYEvMG4oLYUz6oGcKQ1uT626tVo%3DWA%40mail.gmail.com.
The screenshot code in headless shell waits for the page load event to fire, but this not be sufficient for more complicated apps that construct their UI dynamically.One option is to trigger the screenshot based on some signal from Angular ($viewContentLoaded sounds promising but I don't know for sure). For example you could log a console message on that event and use the DevTools Log domain to look for that message and trigger the screenshot when you see it.By the way, how did you insert the 100 second delay? If the browser UI thread is blocked during that delay, it may prevent pages from loading.
- Sami
to 4. elokuuta 2016 klo 19.39 Amit Prakash <am...@thoughtspot.com> kirjoitti:
Dear Chromium headless team,First of all, awesome project. Thank you so much for working on it. I have it a spin recently,and I'm seeing that often I get a screenshot when parts of pages are not loaded (I'm using headless_shell --screenshot <url>).We have a fairly heavy angular app that I'm trying to take a screenshot for. Sometimes, I just get the bank screen. Sometimes I get the backdrop screen but no login prompt. I tried inserting a delay of 100 seconds before Capture Screenshot was called. But that did not help. I see all the console logs printing after the wait statement.Any helpful pointers would be greatly appreciated.-regards,Amit
--
--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev+unsubscribe@chromium.org.
To post to this group, send email to headle...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/CAMXyk4_vZJs4h_DGr2JtdYEvMG4oLYUz6oGcKQ1uT626tVo%3DWA%40mail.gmail.com.

To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/CAMXyk4-5O%2BxBCiuoPuF88L_RbPJmAvR-BQph65YEAfw7p3wODg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/CAF-mE1r_Mv2cnAe2bv%2BZB5WCsqHhLgaERnp35-ho7JMwcD-4JQ%40mail.gmail.com.
- Sami
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
To post to this group, send email to headle...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/CAMXyk4_vZJs4h_DGr2JtdYEvMG4oLYUz6oGcKQ1uT626tVo%3DWA%40mail.gmail.com.
--
--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/CAMXyk4-5O%2BxBCiuoPuF88L_RbPJmAvR-BQph65YEAfw7p3wODg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
Hey Alex,I'm looking to implement virtual time in my application, but I'm having a hard time fully understanding it. From reading some other sources, it seems like a way to deterministically render a page.
Does this mean that if I set the right virtual time budget, it should render the entire page the same every time (barring no missing resources or failed network requests)?
Additionally, does real-time correlate with virtual time? In other words, can I measure the time it takes to load, say "google.com" and then use that as the virtual time policy? Or are these apples and oranges?
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev+unsubscribe@chromium.org.
To post to this group, send email to headle...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/aa5069ff-1664-4bee-ac7a-c2179b46abf1%40chromium.org.