Skip to content

How it works

Playwright Page API introduces page.evaluate() and page.evaluateHandle() methods that allow running arbitrary JavaScript code on the web page. These methods however do not play nicely with the essence of modern Web projects, where libraries and frameworks rely on code pre-processors.

To fill this gap, Rollwright introduces execute() fixture that essentially behaves like page.evaluateHandle() but utilizes Rollup for code pre-processing and dependency resolution and Hono to serve static assets to the browser automatically so you don't have to worry about additional testing infrastructure.

WARNING

🚧 This guide is under construction

Released under ISC License.