How to clear browser cache With JUnit On LambdaTest?
Hello Macy,
It is easy to clear browser cache With JUnit On LambdaTest.
You can use the below code snippet to clear browser cache With JUnit.
// Clearing browser Cache after Test
driver.manage().deleteAllCookies(); // delete all cookies
Thread.sleep(7000); // wait 7 seconds to clear cookies.
You can also download and configure the below repo: