In Puppeteer how to switch to chrome window from default profile to desired profile
问题 My requirement is to test chrome extensions on a new profile. I referred https://peter.sh/experiments/chromium-command-line-switches/ for Chromium args[--user-data-dir, --profile-directory] After the browser is launched, 2 chrome windows are opened. One with given profile and extension and another with default profile and given extension. Also the focus is on a window with default profile. So all actions are happening on it. I had expected that only 1 browser window would be opened with