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)

Posted on Jul 24, 2017 9:00 AM

Reply
6 replies

Jul 27, 2017 7:19 PM in response to rahulakapple

I'm not aware about the tool Cucumber with Serenity , perhaps by entering in user library : macOS Sierra: Library folder

Find folders Caches and Cookies select all the contents and delete them , restart the machine and empty the trash .

And removing files / folders before launching the browser ? You have to open the browser , but there should be reason the files should be deleted.

Avoid unidentified apps in the system .

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

webdriver clear cookies and empty caches

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.