Skip to content

Commit

Permalink
Pick a random port for the firefox cdp implementation to listen on
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Sep 28, 2021
1 parent c1719be commit 728c746
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ protected File findDefaultExecutable() {
protected List<String> createArgs() {
List<String> args = new ArrayList<>();
args.add(String.format("--port=%d", getPort()));
args.add(String.format("--websocket-port=%d", PortProber.findFreePort()));
if (firefoxBinary != null) {
args.add("-b");
args.add(firefoxBinary.getPath());
Expand Down

0 comments on commit 728c746

Please sign in to comment.