Giter Site home page Giter Site logo

Comments (5)

colinrotherham avatar colinrotherham commented on May 25, 2024 6

If you set { headless: 1 } instead of { headless: true } it will bypass the deprecation check

from jest-puppeteer.

colinrotherham avatar colinrotherham commented on May 25, 2024 2

Setting { headless: 'new' } switches to "new headless" which will be the default in future

Chrome’s Headless mode gets an upgrade: introducing --headless=new
https://developer.chrome.com/articles/new-headless/

const browser = await puppeteer.launch({
  headless: 'new',
  // `headless: true` (default) enables old Headless;
  // `headless: 'new'` enables new Headless;
  // `headless: false` enables “headful” mode.
});

You should see Chrome icons in the Dock on macOS but the windows are invisible. Unlike "old headless" it can now run browser extensions but you'll likely see a drop in performance but they're aware of it (approx 30% slower)

from jest-puppeteer.

tmcconechy avatar tmcconechy commented on May 25, 2024

Thanks @colinrotherham that works. The warning was rather annoying as we see it flood our console

from jest-puppeteer.

gregberge avatar gregberge commented on May 25, 2024

Just use headless: "new". I made a new release and I updated the README to specify it.

from jest-puppeteer.

tmcconechy avatar tmcconechy commented on May 25, 2024

@gregberge headless: 'new" causes it to not be headless so get tons of browser windows. Is that correct? Whats the opposite of new. Unclear why they changed this to me seems unclear.

from jest-puppeteer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.