title: How to use chrome profile in puppeteer
body: <p>I am unable to use specific profile in Puppeteer. It always open the chrome as a new user.</p>
  
  <p>For example: I have 3 profiles for my chrome. Following is the code I am using to open chrome in specific profile:</p>
  
  <pre><code>const browser = await puppeteer.launch({
      headless: false,
      executablePath: 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe',
      // args: ['--profile-directory="Profile 1"'],
      userDataDir:"C:\\Users\\USER_NAME\\AppData\\Local\\Google\\Chrome\\User Data\\Profile 1"
    });
  </code></pre>
  
  <p>But it always open the chrome as "Current user" profile.</p>