Den här webbplatsen har begränsad funktionalitet medan vi utför underhåll för att förbättra din upplevelse. Om en artikel inte löser ditt problem och du vill ställa en fråga har vi vår gemenskap som väntar på att hjälpa dig på @FirefoxSupport på Twitter, /r/firefox på Reddit.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

Problem using Firefox 109.0.1(64-bit) in headless mode

  • 1 svar
  • 0 har detta problem
  • 6 visningar
  • Senaste svar av cor-el

more options

I am using Firefox 109.0.1(64-bit) in headless mode from the Command Prompt screen of Windows 10. From the Mozilla Firefox folder if I enter firefox.exe --headless --screenshot C:\Users\me\file1.png https://www.wikipedia.org I successfully store the screenshot as file1.png However, if I enter firefox.exe --headless --screenshot C:\Users\me\file2.png https://www.python.org I don't store any file nor do I get any error message If I enter (not using headless mode) firefox.exe https://www.python.org the Firefox screen is opened and the python.org page is displayed

Any ideas about why wikipedia.org works and python.org doesn't?

I am using Firefox 109.0.1(64-bit) in headless mode from the Command Prompt screen of Windows 10. From the Mozilla Firefox folder if I enter firefox.exe --headless --screenshot C:\Users\me\file1.png https://www.wikipedia.org I successfully store the screenshot as file1.png However, if I enter firefox.exe --headless --screenshot C:\Users\me\file2.png https://www.python.org I don't store any file nor do I get any error message If I enter (not using headless mode) firefox.exe https://www.python.org the Firefox screen is opened and the python.org page is displayed Any ideas about why wikipedia.org works and python.org doesn't?

Alla svar (1)

more options

I always use a separate test-ss profile for testing in headless mode and if necessary delete all the files in this profile leaving the profile folder empty. This still works for me:

Both sites work for me on Linux with the current 109 release.

/usr/local/mozilla/firefox-RE/firefox --screenshot ~/Downloads/test-pyth-109.png https://www.python.org/ -P test-ss -no-remote
/usr/local/mozilla/firefox-RE/firefox --screenshot ~/Downloads/test-wpo-109.png https://www.wikipedia.org/ -P test-ss -no-remote