sensepost / gowitness

🔍 gowitness - a golang, web screenshot utility using Chrome Headless
GNU General Public License v3.0
3.23k stars 345 forks source link

Add delay between the opening of the navigator and taking the screenshot #85

Closed mpgn closed 3 years ago

mpgn commented 3 years ago

Hello

I maybe wrong but I didn't find a way to add a delay between the opening of the navigator and taking the screenshot.

image

Lot of the time the screenshot is made too soon and the page is not fully loaded yet. I use eyeswitness with the delay option as a workaround currently

image

Could be a nice addition.

leonjza commented 3 years ago

Yeah this makes sense, I'd have to double check how to do that using chromedp first.

leonjza commented 3 years ago

Heh, looks simple enough! https://github.com/chromedp/chromedp/blob/v0.5.4/chromedp.go#L629

leonjza commented 3 years ago

gowitness --disable-db --delay 10 single https://www.twitter.com actually results in a valid screenshot since this commit now. hah!

mpgn commented 3 years ago

Nice, thank you !!!

mhmh55516 commented 2 years ago

Delay not works well. image