A exemplo de Cypress e TestCafe, Puppeteer é uma das ferramentas de teste de UI para web que recebe elogios de nossos times. Puppeteer pode ter controle fino sobre navegadores headless, obter rastreamento de tempo para diagnósticos de performance e muito mais. Nossos times acharam Puppeteer mais rápida e mais flexível que outras alternativas baseadas no WebDriver.
In the previous Radar we mentioned Headless Chrome for front-end test. With the adoption of Chrome DevTools Protocol (CDP) by other browsers a new set of libraries is emerging for browser automation and testing. CDP allows for fine-grained control over the browser even in headless mode. New high-level libraries are being created using CDP for testing and automation. Puppeteer is one of these new libraries. It can drive headless Chrome through a single-page application, obtain time-trace for performance diagnostics and more. Our teams found it faster and also more flexible than alternatives based on WebDriver.