Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

headless screenshot with delay

  • 2 відповіді
  • 1 має цю проблему
  • 1 перегляд
  • Остання відповідь від seedsca

more options

I'm trying to write a script that would have firefox take a screenshot from the command line, in headless mode (I think). Only issue is that the site I'm trying to screenshot takes a couple of seconds to finish loading, so I only get a partially loaded screenshot. The only option available on the command line is --window-size...

I can take a screenshot inside the dev console with many more options, including --delay (https://developer.mozilla.org/en-US/docs/Tools/Taking_screenshots), is there any way to replicate these options on the command line?

Any other suggestions to script taking a screenshot of a site with delay added?

I'm trying to write a script that would have firefox take a screenshot from the command line, in headless mode (I think). Only issue is that the site I'm trying to screenshot takes a couple of seconds to finish loading, so I only get a partially loaded screenshot. The only option available on the command line is --window-size... I can take a screenshot inside the dev console with many more options, including --delay (https://developer.mozilla.org/en-US/docs/Tools/Taking_screenshots), is there any way to replicate these options on the command line? Any other suggestions to script taking a screenshot of a site with delay added?

Змінено seedsca

Усі відповіді (2)

more options

Did you look at Firefox in headless mode?

more options

That's what I meant by "on the command line". Headless would have been a much better way to refer to it :)

In headless mode, there is only the option of setting the viewport size, but nothing else related to screenshots. I'd like to set a delay, just as it's possible inside the dev tools console.