handle cookies in selenium code example
Example 1: how to handle cookies in selenium
There are several ways to handle cookies
driver.manage().getCookies();
driver.manage().getCookieNamed(arg0);
driver.manage().addCookie(arg0);
driver.manage().deleteCookie(arg0);
driver.manage().deleteCookieNamed(arg0);
driver.manage().deleteAllCookies();
Example 2: handle cookies in selenium
There are several ways to handle cookies
driver.manage().getCookies();
driver.manage().getCookieNamed(arg0);
driver.manage().addCookie(arg0);
driver.manage().deleteCookie(arg0);
driver.manage().deleteCookieNamed(arg0);
driver.manage().deleteAllCookies();