Package de.frankmuenster.mahoe.utils
Class SeleniumCookie
java.lang.Object
de.frankmuenster.mahoe.utils.SeleniumCookie
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
-
Method Details
-
read
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, 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
-