-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to use puppeteer with my current chrome (keeping my credentials) #3543
Comments
@lucasteisseire in order to run puppeteer against stable chrome, you should do the following:
const pptr = require('puppeteer-core');
(async () => {
const browser = await pptr.launch({
executablePath: '<path-to-my-chrome-exec>'
});
// ... go on...
})(); Hope this helps. |
Not working :/ in Version 75.0.3770.100 (Official Build) (64-bit), It still opens up new instance of chrome and it has no history whatsoever, I had to open it along with my other chrome tabs.
Here I also tried puppeteer-core , means pptr variable await pptr.launch in above variable, still not working. The issues is not closed! |
Maybe this post might help: https://medium.com/@jaredpotter1/connecting-puppeteer-to-existing-chrome-window-8a10828149e0 |
not working var browser, page;
browser = await puppeteer.launch({
executablePath: '/usr/bin/chromium',
userDataDir: '/tmp/browser'
});
page = await browser.newPage();
await page.goto('https://gmail.com/');
await browser.close();
browser = await puppeteer.launch({
headless: false,
executablePath: '/usr/bin/chromium',
userDataDir: '/tmp/browser'
});
page = await browser.newPage();
await page.goto('chrome://history/'); // history empty |
The instructions above launch headless chrome from chrome//about : code: const page = await browser.newPage(); `` runs in console and logs the correct url |
what is the minimum version of chrome required? |
Hey guys, I found a solution to this problem. So you can input the path to your userDataDir as part of the puppeteer launch parameters. Look for profile path by executing
|
@ashminbhandari puppeteer-core or puppeteer? |
@ORESoftware OOF, I believe it was puppeteer-core but I am not 100% |
@ashminbhandari yeah I am looking for an answer to #5756 |
Any progress on this, @ORESoftware ? I've been trying to use my installed version for a while now :/.. The idea is to keep all my browser information/credentials while running puppeteer. |
@ORESoftware Are you in a position to use something else? I switched to Selenium when I ran into this problem. And I believe it is suggested that you instead copy your profile directory and provide the path to that instead because running two instances on the same profile directory causes problems. |
I'm using something like that. My idea is to make the puppteer open in a url window, to be inserted into a page at run time No answer so far |
Try this
This json should give you the
|
Executable path and userDataDir can be found here |
This works perfectly fine with one little thing: |
If anyone ever gets here, this still works but you need to replace |
Hey I still not able to connect webSocketdebugger cause site not open at all |
i'm actually trying to use puppeteer for scraping and i need to use my current chrome to keep all my credentials and use it instead of relogin and type password each time which is a really time lose !
is there a way to connect it ? how to do that ?
i'm actually using node v11.1.0
and puppeteer 1.10.0
}
and now it will be perfect if i do not need to use that and go on page (headless, i dont wan't to see the page opening i'm just using the info scraping in node) but with my current chrome who does not need to login to have information i need. (because at the end i want to use it as an extension of chrome)
thx in advance if someone knows how to do that
The text was updated successfully, but these errors were encountered: