How to clear history and reset session after everytime open safari


#1

Hi,

How to clear history and reset session after everytime open safari on iOS?

capabilities.SetCapability(“report.disable”, true);
capabilities.SetCapability(MobileCapabilityType.Udid, UDID);
capabilities.SetCapability(“safariAllowPopups”, true);
capabilities.SetCapability(“fullReset”, true);
capabilities.SetCapability(“monitoring.disable”, false);
capabilities.SetCapability(capabilities.BrowserName, MobileBrowserType.Safari);
iosDriver = new IOSDriver(new Uri(“http://localhost:4723/wd/hub”), capabilities);