@Test
public void testTurningOffLogShouldMeanNoLogMessages() throws Exception {
Set<String> logTypes = driver.manage().logs().getAvailableLogTypes();
for (String logType : logTypes) {
IOSCapabilities caps = IOSCapabilities.iphone("Safari");
LoggingPreferences logPrefs = new LoggingPreferences();
logPrefs.enable(logType, Level.OFF);
caps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);
startDriver(caps);
driver.get(pages.simpleTestPage);
LogEntries entries = driver.manage().logs().get(logType);
assertTrue(entries.getAll().isEmpty(),