Forum Discussion

sridhar249's avatar
sridhar249
Occasional Contributor
5 years ago

How to clear cookies on ios device

I am using a ios physical device connected to my windows system for running the automation on the ios device.

 

I would like to clear cookies before each scanario so that there is no data from the last scenario execution for the next scenario that are going to be executed.

 

Is there a way to clear cookies on the ios device?

 

for android, this seems to work for me: Mobile.Device().ShellExecute("pm clear com.smartbear.smartbearbrowser"); 

 

I am using Testcomplete with Javascript language.

 

Thanks in Advance,

Sridhar.

No RepliesBe the first to reply