public final class SeleniumCookie
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static void |
read(org.openqa.selenium.WebDriver driver,
java.lang.String backupCookieFile) |
Reads the cookies from the backup file
|
static void |
write(org.openqa.selenium.WebDriver driver,
java.lang.String backupCookieFile) |
Writes the cookies in the backup file
|
public static void read(org.openqa.selenium.WebDriver driver, java.lang.String backupCookieFile)
driver
- Selenium WebDriver
to add cookies tobackupCookieFile
- the backup file name for this bankApplicationExceptionin
- case the cookies could not be restoredpublic static void write(org.openqa.selenium.WebDriver driver, java.lang.String backupCookieFile) throws de.willuhn.util.ApplicationException
driver
- Seleniuem WebDriver
to get the cookies frombackupCookieFile
- the backup file name for this bankde.willuhn.util.ApplicationException
- in case the cookies could not be stored