The following Desired Capability can be used to start Chrome Browser during an automation session using user-defined profile.


NameData TypeValue
goog:chromeOptions
String{"args":["user-data-dir=/path/to/your/custom/profile"]}


The default location of Chrome Browser Profile for different OS are:


OSProfile Path
Windows 7, 8.1, and 10
C:\Users\<username>\AppData\Local\Google\Chrome\User Data\Default
Mac OS X El Capitan
Users/<username>/Library/Application Support/Google/Chrome/Default
Linux
/home/<username>/.config/google-chrome/default




While Executing, you can check the current Profile location by going to the URL chrome://version