public class AemAuthCookieFactory extends Object
| Constructor and Description |
|---|
AemAuthCookieFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.Cookie |
getCookie(String url,
String login,
String password)
This method provides browser cookie for authenticating user to AEM instance
|
void |
removeCookie(String url)
This method allows to remove cached authentication cookie for a given URL
|
public org.openqa.selenium.Cookie getCookie(String url, String login, String password)
url - URL to AEM instance, like http://localhost:4502login - Username to usepassword - Password to usepublic void removeCookie(String url)
url - URL to AEM instance, like http://localhost:4502Copyright © 2016–2018 Cognifide Ltd.. All rights reserved.