log.info("Firefox profile directory: {}", profileDir);
}
if (isRemote) {
String json;
try {
json = profile.toJson();
} catch (IOException e) {
throw new RuntimeException(e);
}
caps.setCapability(FirefoxDriver.PROFILE, json);
log.info("Convert Firefox profile to JSON: {} bytes", json.length());