Class SeleniumCookie

java.lang.Object
de.frankmuenster.mahoe.utils.SeleniumCookie

public final class SeleniumCookie extends Object
Utility class to handles cookies. Offers methods to save and restore cookies for a web domain
Since:
2.4.0
Author:
Frank Münster
  • Method Details

    • read

      public static void read(org.openqa.selenium.WebDriver driver, String backupCookieFile)
      Reads the cookies from the backup file
      Parameters:
      driver - Selenium WebDriver to add cookies to
      backupCookieFile - the backup file name for this bank
      Throws:
      ApplicationExceptionin - case the cookies could not be restored
    • write

      public static void write(org.openqa.selenium.WebDriver driver, String backupCookieFile) throws de.willuhn.util.ApplicationException
      Writes the cookies in the backup file
      Parameters:
      driver - Seleniuem WebDriver to get the cookies from
      backupCookieFile - the backup file name for this bank
      Throws:
      de.willuhn.util.ApplicationException - in case the cookies could not be stored