Update DefaultCookieSerializer to use base64 by default

Fixes gh-736
This commit is contained in:
Vedran Pavic
2017-04-26 22:43:30 +02:00
parent 6327d36ce9
commit 815cbf4ee8
6 changed files with 38 additions and 14 deletions

View File

@@ -16,6 +16,7 @@
package sample.pages;
import java.util.Base64;
import java.util.Set;
import org.openqa.selenium.By;
@@ -59,7 +60,7 @@ public class HomePage extends BasePage {
String cookieValue = null;
for (Cookie cookie : cookies) {
if ("SESSION".equals(cookie.getName())) {
cookieValue = cookie.getValue();
cookieValue = new String(Base64.getDecoder().decode(cookie.getValue()));
}
}
WebElement element = getDriver().findElement(By.id("terminate-" + cookieValue));