Installation¶
This distribution is glue. It pulls in the two pieces it sits between, but the browser itself comes from WWW::Playwright, which needs Node and a Chromium binary.
The three pieces¶
- BDD::Behave — the
describe/context/it/expectDSL and the matcher protocol. Pure Raku. - WWW::Playwright — drives a real browser through a long-lived Node sidecar.
Needs Node, the
playwrightnpm package, and a Chromium binary. - BDD::Behave::Playwright — this distribution. Lifecycle hooks and matchers that connect the two. It does no browser driving of its own.
Install¶
Installing this distribution brings in both Raku dependencies:
1 | |
Install the browser runtime¶
WWW::Playwright's sidecar needs its npm dependencies and a Chromium binary. After installing, run its installer once:
1 | |
That runs npm install for the sidecar and npx playwright install chromium.
You also need Node available on PATH (override with PLAYWRIGHT_NODE).
Verify¶
A one-example spec confirms the whole stack resolves and a browser launches:
1 2 3 4 5 6 7 8 9 10 | |