Skip to content

Instantly share code, notes, and snippets.

@gwpantazes
gwpantazes / SafariBugWorkaround.java
Last active April 14, 2021 13:47
SafariDriver can't clear cookies
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.safari.SafariDriver;
class SafariBugWorkaround {
/**
* Delete all the cookies for the current domain.
*
* <p>Should be used in-place of {@link WebDriver.Options#deleteAllCookies()} until <a
* href="">this {@code SafariDriver} bug</a> is fixed.