I am trying to get a cookie value but keep getting an error of
I am calling
This worked for me:
Cookie cookie= driver.manage().getCookieNamed("sitename.session"); String cookieVal= cookie.getValue();