How to clear browser cache before every test run? I tried with driver.manage().deleteAllCookies(); in setUp method after creating the driver instan
driver.manage().deleteAllCookies();
setUp
Use the below code to clear cache in IE
try { Runtime.getRuntime().exec("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255"); } catch (IOException e) { e.printStackTrace(); }