I have a problem with the Selenium web driver. What I'm trying to do is run a βportableβ chrome instead of a local install, as it has different settings.
The problem is that portable Chrome (from PortableApps) seems to only start when using GoogleChromePortable.exe. If I use only Chrome binary, it will start my local installation. With Selenium, it seems that no matter which Chrome path I pass to it (GoogleChromePortable.exe or the binary path), it launches my local installation.
Here is my code:
String chromePath = "M:/my/path"; DesiredCapabilities capabilities = DesiredCapabilities.chrome(); ChromeOptions options = new ChromeOptions(); capabilities.setCapability("chrome.binary", chromePath); capabilities.setCapability(ChromeOptions.CAPABILITY, options);
Any ideas on how to start my portable chrome? Thanks
source share