You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, it seems sulla.create() doesn't have any option for setting a custom chrome/chromium executable path which is provided by puppeteer. We can pass a custom executable path via executablePath options. Fore more information, see https://github.com/puppeteer/puppeteer#default-runtime-settings.
It seems initBrowser method accepts extra argument which can be used to pass executablePath option, but that argument is not exposed to outside.
Here is initBrowser method:
// Use stealth plugin to avoid being detected as a bot
puppeteer.use(StealthPlugin());
constbrowser=awaitpuppeteer.launch({
// headless: true,
headless: options.headless,
devtools: options.devtools,
userDataDir: path.join(process.cwd(),session),
args: options.browserArgs
? options.browserArgs
: [...puppeteerConfig.chroniumArgs],
...extras,
});
returnbrowser;
}
Could you allow us to set executablePath option or expose extra argument to outside? It'd be so helpful for me. I need to set custom chrome path in order to avoid downloading chromium (I have to count my internet usage, unfortunately).
Hi, it seems
sulla.create()
doesn't have any option for setting a custom chrome/chromium executable path which is provided by puppeteer. We can pass a custom executable path viaexecutablePath
options. Fore more information, see https://github.com/puppeteer/puppeteer#default-runtime-settings.It seems
initBrowser
method acceptsextra
argument which can be used to passexecutablePath
option, but that argument is not exposed to outside.Here is
initBrowser
method:sulla/src/controllers/browser.ts
Lines 49 to 78 in 76da1b1
Could you allow us to set
executablePath
option or exposeextra
argument to outside? It'd be so helpful for me. I need to set custom chrome path in order to avoid downloading chromium (I have to count my internet usage, unfortunately).By the way, setting a custom executable path can be done with
PUPPETEER_EXECUTABLE_PATH
environment variable, too. See: https://github.com/puppeteer/puppeteer/blob/v5.3.0/docs/api.md#environment-variablesSo setting
executablePath
option is not mandatory.The text was updated successfully, but these errors were encountered: