How to get cookie information as JSON – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to get cookie information as JSON ...

How to get cookie information as JSON



Cookie cookie1 = driver.manage().getCookieNamed("1P_JAR");
Map jsonObject = cookie1.toJson();
System.out.println(jsonObject.toString());

Leave a Reply

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