configurable create:screenshot timeout
Description
My application loads a lot of javascript (datatables, in particular), and the screenshot shows a near empty screen because it's not finished loading.
This is what I'm trying to capture:
https://museado.org/es/pixie/pixie/meili/larco/object
bin/console pwa:create:screenshot https://museado.org/es/pixie/pixie/meili/larco/object --width="1000" --height="700" --filename="tablet/es/pixie_meili_browse-larco_object-1000x700.png
A --timeout 6000 in the CLI might work, or a timeout open in the configuration. What is the default timeout now?
Example
but should be
Any suggestions on how to solve this? Like waiting until a particular element appears?
In this case, it loads datatables and all its plugins, then loads a batch of data including photos, so the initial page load is pretty heavy. Then it works pretty quickly, but I'm not sure how to get a screenshot if the site itself takes several seconds to get to this point.
Hi,
I noted the Panther application has a waitFor method.
It could be interesting to wait for a specific class/id to be present before the screenshot.
Closing as the screenshot feature is deprecated in 1.3 and will be removed in 2.0.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.