All changes that you make in Google Chrome, for example your home page, what toolbars you use, any saved passwords, and your bookmarks, are all stored in a special folder, which is called a user data directory.
chrome.exe "--user-data-dir=C:/Users/MyUser/AppData/Local/Google/Chrome/User Data"To set the profile directory for our sample web application, you can use the following code:
BrowserBaseState baseState = new BrowserBaseState(BrowserType.GoogleChrome, "demo.borland.com\InsuranceWebExtJS"); String myProfileDir = "--user-data-dir=C:\\temp\\SilkTest \"--profile-directory=my user\""; baseState.setCommandLineArguments(myProfileDir); desktop.executeBaseState(baseState);