Код: Выделить всё
public File layoutOnDisk() {
File profileDir;
if (this.disableTempProfileCreation) {
profileDir = this.model;
return profileDir;
} else {
try {
profileDir = TemporaryFilesystem.getDefaultTmpFS().createTempDir("ABC", "XYZ");
File userPrefs = new File(profileDir, "user.js");
this.copyModel(this.model, profileDir);
this.installExtensions(profileDir);
this.deleteLockFiles(profileDir);
this.deleteExtensionsCacheIfItExists(profileDir);
this.updateUserPrefs(userPrefs);
return profileDir;
} catch (IOException var3) {
throw new UnableToCreateProfileException(var3);
}
}
}
Однако теперь, когда селен управляется Geccodriver . Geckodriver.exe (который написан на языке Rust . Как я могу достичь одной и той же цели с Geckodriver ? Я не против редактировать исходный код. Я использую Java.
Подробнее здесь: https://stackoverflow.com/questions/675 ... fox-profil