Has anyone found a way to restore/import cookies in a Safari driver session?

Goal: navigate a website without having to log-in at the start of my execution. I have accomplished this with Edge, Chrome and Firefox, but cannot find a workaround for Safari.

What I tried:

safariOptions.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, false);

safariOptions.setCapability(CapabilityType.SUPPORTS_APPLICATION_CACHE, false);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.