⚠️ 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 |
---|---|
keyboard.down(key) | - |
keyboard.insertText(text) | - |
keyboard.press(key[, options]) | - |
keyboard.type(text[, options]) | - |
keyboard.up(key) | - |