I have a site storing cookies on browser as, language = en I tries to output all the cookies by using the java code via selenium,
ChromeDriver driver = new ChromeDriver();
driver.navigate().to(url);
System.out.println(driver.manage().getCookies());
but I do not have any luck of getting the cookies that I have defined in my site. I tried using geckodriver and chromedriver, both resulting not getting the cookies key and value. How do I enable the cookies so that I can get all the defined cookies, on my site. I do know following the below link StackOverFlow disables the cookies, but how to enable it.
In addition, me accessing the site normally via chrome browser was able to read the cookies from the application storage, but in Firefox still doesn't have those cookies key/value at the storage, maybe due to default setting to not accept any cookies. Thanks for the help.