puppeteer: Removing infobars not working in Chromium or Chrome v64
Steps to reproduce
Tell us about your environment:
- Puppeteer version: 5.6.0
- Platform / OS version: Windows 10
- Node.js version: v8.9.3
- Chrome version: {Beta} 64.0.3282.71
What steps will reproduce the problem?
puppeteer.launch(options = {
args: ['--disable-infobars']
});
// ^ Not working.
Setting viewport for page only resizes that page within the chrome tab, but not the chrome window itself (which is intended)
Though according to the documentation… https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md ^ Look at puppeteer launch options ^ notice the args section ^ takes you to --> https://peter.sh/experiments/chromium-command-line-switches/
which lists the argument as listed in the code above, yet is not working.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 21 (3 by maintainers)
Commits related to this issue
- fix: replace remove-infobar with disable-blink-features remove-infobar was removed since M76 https://github.com/puppeteer/puppeteer/issues/1765 — committed to DIYgod/RSSHub by TonyRL a year ago
- feat(utils/puppeteer): replace `puppeteer-extra-plugin-stealth` with `rebrowser` (#19506) * feat: use rebrowser * fix: remove rebrowser-puppeteer-core * fix: chrome not found * fix: replace remove... — committed to DIYgod/RSSHub by TonyRL a year ago
- feat(utils/puppeteer): replace `puppeteer-extra-plugin-stealth` with `rebrowser` (#19506) * feat: use rebrowser * fix: remove rebrowser-puppeteer-core * fix: chrome not found * fix: replace remove... — committed to LucunJi/RSSHub by TonyRL a year ago
Adding
ignoreDefaultArgs: ["--enable-automation"]to the options inpuppeteer.launch({...})will remove the “Chrome is being controlled by automated test software” infobar.It’s not working again…
For those who encounters into an extra infobars, just add
'--enable-blink-features=IdleDetection'toignoreDefaultArgsSolution for ChromeDriver tested with Selenium WebDriver https://help.applitools.com/hc/en-us/articles/360007189411--Chrome-is-being-controlled-by-automated-test-software-notification
Apparently it was added back. In initial testing, I’ve also been able to get rid of the message by removing the
--enable-automationoption from puppeteer’s default args.Is there way to disable the info-bars now since the command “–disable-infobars” has been removed. I Need to disable the info bar when Chrome is launched using selenium
Seems to work in Playwright, too. Thanks!
Is there anyway to disable ? it looks pretty ugly in --kiosk mode.