Hi there,I LOVED the k6 Musicaa demo at GrafanaCON. So much so that I’m trying to replicate it on my side however I’m hitting a blocker and wondering if anyone can give me guidance.
If it helps I’m on Linux, Pop!_OS 22.04 with Chrome installed.
- I built a bundle with
xk6 build --with
github.com/grafana/xk6-browser
- Created basic
test.js
script using the provided examples:
import launcher from 'k6/x/browser'; export default function () { const browser = launcher.launch('chromium', { headless: false }); const context = browser.newContext(); const page = context.newPage(); page.goto('http://whatsmyuseragent.org/'); page.close(); browser.close(); }
However when I try running this binary with ./k6 run test.js
I get:
ERRO[0000] cannot allocate browser: cannot start browser: does not exist: at reflect.methodValueCall (native)
I have chromium
installed and on my path so I’m not sure what this error is trying to tell me.