I want to launch edge in private mode using desired capabilites. How can I do that?

I want to launch edge in private mode using desired capabilites. How can I do that?

Hello Matthew-phillips,

You can add the below snippet below:

HashMap<String, Object> options = new HashMap<String, Object>();
ArrayList<String> args = new ArrayList<String>();
args.add("InPrivate");
options.put("args", args);
capabilities.setCapability("ms:edgeOptions", options);