Version 23 of the Puppeteer browser automation library now fully supports Firefox, allowing users to easily automate tasks and run end-to-end testing across both Chrome and Firefox. The support is based on the WebDriver BiDi protocol, a standardized cross-browser protocol undergoing standardization at W3C. This collaboration between the Puppeteer team and the W3C Browser Testing and Tools Working Group highlights the advancement of web automation. Key features of WebDriver BiDi include log message capture, device emulation for responsive layout testing, network request interception, and preload scripts. The transition from experimental CDP support in Firefox to WebDriver BiDi is underway, with future plans to fill any remaining API gaps.
https://hacks.mozilla.org/2024/08/puppeteer-support-for-firefox/