⚠️ Compatibility
The xk6-browser API aims for rough compatibility with the Playwright API for NodeJS.
Because k6 does not run in NodeJS, the xk6-browser API will slightly differ from its Playwright counterpart.
Note that k6 APIs are synchronous.
Supported APIs
Method | Playwright Relevant Distinctions |
---|---|
mouse.click(x, y[, options]) | - |
mouse.dblclick(x, y[, options]) | - |
mouse.down([options]) | - |
mouse.move(x, y[, options]) | - |
mouse.up([options]) | - |
mouse.wheel(deltaX, deltaY) | - |