GUI and headless browsers in Travis CI

You can run headless browsers in Travis CI in a couple of ways. You can utilize an X Virtual Framebuffer, or XVFB in short form, which you can read more about in the XVFB docs (https://www.x.org/archive/X11R7.6/doc/man/man1/Xvfb.1.xhtml). We will look at using headless chrome with Puppeteer (https://pptr.dev/), which is a library developed by Google that provides a high level API to work with headless Chrome.

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.