How to get all cookies information in Appium


Set cookies = driver.manage().getCookies();
for(Cookie cookie: cookies) {
System.out.println("Name : " + cookie.getName());
System.out.println("Value : " + cookie.getValue());
System.out.println("Domain : " + cookie.getDomain());
System.out.println("Path : " + cookie.getPath());
System.out.println("Expiry : " + cookie.getExpiry());
System.out.println("Secure : " + cookie.isSecure());
System.out.println("isHttpOnly : " + cookie.isHttpOnly());
}

Leave a Reply

Your email address will not be published. Required fields are marked *