How to add bookmarks in Chromium/Chrome in automated fashion
How to add bookmarks in Chromium/Chrome in automated fashion I am trying to test a Chrome extension that searches bookmarks. Puppeteer loads Chromium with a clean profile each time, which is great, but my bookmarks are empty. I was hoping to find a way to load a bookmarks file, so I don't have to use the Chrome API to manually create a bookmark tree under a testing flag in my code. If you're going to use your rep to downvote, please comment a reason so I can correct the question. – Eric Majerus Jun 16 at 2:17 1 Answer 1 You can load an existing user data directory with all of its data, including bookmarks and browser settings: puppeteer.launch({ userDataDir: '/path/to/user-data-directory', }) The profile must be from a Chrome/Chromium v...