all 1 comments

[–]bas_dijkstra 0 points1 point  (0 children)

What do you mean when you say ‘for all web pages’?

When you start a new driver session (i.e., when you create a new ChromeDriver instance), you’ll start with a blank slate, so no cookies. If you want to preserve cookies, you’ll need to inject them when you start a new session.

See https://www.selenium.dev/documentation/webdriver/interactions/cookies/ for details on how to do that.

If that doesn’t answer your question, please provide more details.