Boring technical question which neither the documentation nor ChatGPT can answer.

I want to automate screenshots using 's Webdriver with .

This works - but the non-logged in experience of Twitter forces dark-mode.

I want a light-mode screenshot.

I can't find a way to set SEC-CH-PREFERS-COLOR-SCHEME in Selenium. Nor can I find a light-mode toggle for non-logged in Twitter users.

Any clues gang?

(I want to automate replacing my Twitter embeds with a screenshot.)

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Replies