Package de.frankmuenster.mahoe.utils
Class SeleniumCookie
- java.lang.Object
-
- de.frankmuenster.mahoe.utils.SeleniumCookie
-
public final class SeleniumCookie extends java.lang.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
read(org.openqa.selenium.WebDriver driver, java.lang.String backupCookieFile)
Reads the cookies from the backup filestatic void
write(org.openqa.selenium.WebDriver driver, java.lang.String backupCookieFile)
Writes the cookies in the backup file
-
-
-
Method Detail
-
read
public static void read(org.openqa.selenium.WebDriver driver, java.lang.String backupCookieFile)
Reads the cookies from the backup file- Parameters:
driver
- SeleniumWebDriver
to add cookies tobackupCookieFile
- 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, java.lang.String backupCookieFile) throws de.willuhn.util.ApplicationException
Writes the cookies in the backup file- Parameters:
driver
- SeleniuemWebDriver
to get the cookies frombackupCookieFile
- the backup file name for this bank- Throws:
de.willuhn.util.ApplicationException
- in case the cookies could not be stored
-
-