DesiredCapabilities caps = DesiredCapabilities.chrome();
caps.setCapability("chrome.switches",
Arrays.asList("--load-extension=/path/to/extension"));
WebDriver driver = new ChromeDriver(caps);
this will be better documented soon. You may also want to create a
feature request for allowing profiles to be passed to the ChromeDriver
on https://code.google.com/p/selenium/issues/entry
> --
> You received this message because you are subscribed to the Google Groups "webdriver" group.
> To post to this group, send email to webd...@googlegroups.com.
> To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
>
>