}
public void restartWebkit() {
int currentPageID = webDriver.getCurrentPageID();
webDriver.stop();
WebKitRemoteDebugProtocol p = WebKitRemoteDebugProtocolFactory.create(session, nativeDriver);
List<WebkitApplication> applications = webDriver.getApplications();
webDriver = new RemoteIOSWebDriver(session, p);
webDriver.setApplications(applications);
webDriver.start();