html2image icon indicating copy to clipboard operation
html2image copied to clipboard

Can I set a fixed delay time? time.sleep doesn't work, and screenshots occasionally hang blocking tasks

Open zzy-life opened this issue 1 year ago • 5 comments

Can I set a fixed delay time? Because the vue page has not rendered the code yet and the screenshot is taken.

zzy-life avatar Apr 30 '24 00:04 zzy-life

I have the same issue. How did you solve this @zzy-life ?

kafisatz avatar Dec 13 '24 13:12 kafisatz

I have the same issue. How did you solve this @zzy-life ?

I haven't found a solution. Setting --virtual-time-budget=10000 doesn't seem to work.

zzy-life avatar Dec 17 '24 14:12 zzy-life

I have no solution yet. But thanks for bringing up this option! A workaround might be to add a manual time.sleep(10) command in your python script

kafisatz avatar Dec 18 '24 09:12 kafisatz

I have no solution yet. But thanks for bringing up this option! A workaround might be to add a manual time.sleep(10) command in your python script

This doesn't seem to work. I have ten tasks, and using time.sleep doesn't allow each task to have a 10s interval.

zzy-life avatar Dec 22 '24 03:12 zzy-life

I have no solution yet. But thanks for bringing up this option! A workaround might be to add a manual time.sleep(10) command in your python script

And in practice, the screenshot task occasionally hangs and gets blocked, probably because my server configuration is too low: 2 cores 2g

zzy-life avatar Dec 22 '24 03:12 zzy-life