I tried to automate one function and I used command in selenium: driver.manage .delete All Cookies
but when I run script Cookies is appear on the page.
Also I tried almost all commands of manage cookies and watched lots of videos to solve the prob.
@Before
public void setup(){
driver.get(base);
driver.manage().window().maximize();
driver.manage().delete All Cookies();