webdriver clear cookies and empty caches
Hi,
I am a newbie here.
Using CucumberWithSerenity to execute tests along with Maven as build tool. When I execute launch tests for Chrome and Firefox, the CucumberWithSerenity clears all the cookies (and maybe caches) before launch of each test.
e.g
1. mvn clean install -Dwebdriver.driver=chrome
2. mvn clean install -Dwebdriver.driver=firefox
However when I do launch safari browser by using the command,
mvn clean install -Dwebdriver.driver=safari
the cookies are not cleared.
This affects the way the automated test cases are being designed.
Is there a way in SafariWebdriver that we can clear the cookies?
If there is list of files/folders which can removed before launch of the browser, can anyone provide such a list?
Thanks
MacBook Pro with Retina display, macOS Sierra (10.12.5)