public JSONObject logElementTree(File screenshot, boolean translation, Path path,
WebDriverLikeCommand command,
RemoteWebDriver driver) {
WebDriverLikeRequest request = buildRequest(WebDriverLikeCommand.TREE,
ImmutableMap
.of("attachScreenshot", screenshot != null,
"translation", translation));
JSONObject log = commandExecutor.execute(request);
if (screenshot != null) {