Skip to content

Commit c987a4c

Browse files
authored
Merge pull request #6254 from thc202/selenium/fx-profile-headless
2 parents 7e8ef81 + 6133d2e commit c987a4c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

addOns/selenium/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
### Added
99
- Add debug log for the Firefox profile creation.
1010

11+
### Changed
12+
- Create profiles with Firefox headless.
13+
1114
## [15.34.0] - 2025-02-27
1215
### Changed
1316
- Update Selenium to version 4.29.0.

addOns/selenium/src/main/java/org/zaproxy/zap/extension/selenium/internal/FirefoxProfileManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public Path getOrCreateProfile(String profileName) throws IOException {
141141
}
142142
FirefoxOptions firefoxOptions = new FirefoxOptions();
143143
String path = firefoxOptions.getBinary().getPath();
144-
String[] args = {path, "-CreateProfile", profileName};
144+
String[] args = {path, "-headless", "-CreateProfile", profileName};
145145
LOGGER.debug("Creating profile with: {}", () -> Arrays.toString(args));
146146

147147
Process ps = runtime.exec(args);

0 commit comments

Comments
 (0)