Skip to content

Updated 'headless' flag to 'new' to prevent deprecation warnings #855

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/puppeteer-extra-plugin-stealth/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const StealthPlugin = require('puppeteer-extra-plugin-stealth')
puppeteer.use(StealthPlugin())

// puppeteer usage as normal
puppeteer.launch({ headless: true }).then(async browser => {
puppeteer.launch({ headless: "new" }).then(async browser => {
console.log('Running tests..')
const page = await browser.newPage()
await page.goto('https://bot.sannysoft.com')
Expand All @@ -55,7 +55,7 @@ import StealthPlugin from 'puppeteer-extra-plugin-stealth'

puppeteer
.use(StealthPlugin())
.launch({ headless: true })
.launch({ headless: "new" })
.then(async browser => {
const page = await browser.newPage()
await page.goto('https://bot.sannysoft.com')
Expand Down Expand Up @@ -257,7 +257,7 @@ puppeteer.use(require('puppeteer-extra-plugin-stealth')())
// Launch the browser in headless mode and set up a page.
const browser = await puppeteer.launch({
args: ['--no-sandbox'],
headless: true
headless: "new"
})
const page = await browser.newPage()

Expand Down