Skip to content
TestsigmaDOCS

Desired Capabilities

Using Custom User Profile in Chrome

Steps for using Custom User Profile in Testsigma

Section titled “Steps for using Custom User Profile in Testsigma”
  1. Finding your current Profile path
  2. Making changes in the Profile folder
  3. Using the Desired Capability

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

Chrome version tab

Location of Chrome Browser Profile(default profile)

Section titled “Location of Chrome Browser Profile(default profile)”
OS Profile 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

Workaround to use user-defined profile for Executing Tests on Testsigma

Section titled “Workaround to use user-defined profile for Executing Tests on Testsigma”

We could use the –profile-directory argument for specifying the User Profile. However, due to a known bug in Chrome, you might need to do the following workaround and use the –user-data-dir argument.

2. Making changes in Profile folder (workaround)

Section titled “2. Making changes in Profile folder (workaround)”
  1. Open your default File Explorer (Windows Explorer - Windows, Nautilus - Linux and Files - Mac) and navigate to the location - C:\Users<username>\AppData\Local\Google\Chrome\User Data\Profile 1

  2. Create a folder named ‘Default’ there and copy the contents of ‘Profile 1’ directory deselecting the recently created ‘Default’ folder.

  3. Paste the copied contents inside the ‘Default’ folder.

After that, you can use Desired Capability in the following format for using a user-defined profile in Testsigma. The following Desired Capability can be used to start Chrome Browser during an automation session using a user-defined profile.

Name Data Type Value
goog:chromeOptions String {“args”:[“user-data-dir=/path/to/your/custom/profile”]}