My program uses a proxy and works with several services where I need to load cookies. Using a proxy, loading a website can take a lot of time anyway, but this way takes even more:
driver.get('url')
for cookie in pickle.load(open("path", "rb")):
driver.add_cookie(cookie)
driver.refresh()
Also, this method can sometimes cause the service to be suspicious, because first it receives a request without a cookie and then with a cookie. After that, captchas may appear and etc. How can I load cookies before loading page?