pwa-bundle icon indicating copy to clipboard operation
pwa-bundle copied to clipboard

configurable create:screenshot timeout

Open tacman opened this issue 1 year ago • 2 comments

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

image

but should be

image

tacman avatar Sep 05 '24 17:09 tacman

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.

tacman avatar Sep 16 '24 10:09 tacman

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.

Spomky avatar Sep 22 '24 19:09 Spomky

Closing as the screenshot feature is deprecated in 1.3 and will be removed in 2.0.

Spomky avatar Jul 22 '25 17:07 Spomky

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.

github-actions[bot] avatar Aug 23 '25 01:08 github-actions[bot]