How do i use protocol_handler.excluded_scheme in java client

210 views
Skip to first unread message

abhishe...@gmail.com

unread,
Jun 17, 2016, 2:09:14 PM6/17/16
to ChromeDriver Users
I am trying to add customApp in protocol handler by setting it to false. But this does not reflects in Remote ChromeDriver.

And even i dont see change in local state for that temp profile created under /private/...

Example below:

Map<String,Boolean>data = new HashMap<>();
data.put("customApp",false);

Map<String, Object> prefs = new HashMap<String, Object>();

prefs.put("protocol_handler.excluded_schemes",data);
DesiredCapabilities caps = DesiredCapabilities.chrome();

ChromeOptions options = new ChromeOptions();
options.setExperimentalOption("prefs", prefs);
caps.setCapability(ChromeOptions.CAPABILITY, options);

WebDriver driver =new RemoteWebDriver(new URL("remote url"), caps);

Yogesh Jadhav

unread,
Nov 8, 2020, 10:59:34 AM11/8/20
to ChromeDriver Users
Hi Abhishek,

Could you able to set the preferences for excluded_schems. I am also facing the same issue.

Reply all
Reply to author
Forward
0 new messages