Closed ankur22 closed 2 years ago
Tested against: https://github.com/grafana/xk6-browser/commit/dbede120c63df43995813a847a25b0e66e289592
I was testing the Launch function with the following script as I was testing the args option:
Launch
args
import { sleep } from 'k6'; import launcher from 'k6/x/browser'; export default function () { const browser = launcher.launch('chromium', { args: ['--show-property-changed-rects'], headless: false, }); const context = browser.newContext(); const page = context.newPage(); const res = page.goto('https://maps.google.com'); sleep(10); browser.close(); }
I was expecting coloured boxes to appear on screen as I hovered the mouse on the page like so:
But this didn't happen and no boxes displayed anywhere.
This feature works. The argument should be without dash-dash as follows:
const browser = launcher.launch('chromium', { args: ['show-property-changed-rects'], headless: false, });
Tested against: https://github.com/grafana/xk6-browser/commit/dbede120c63df43995813a847a25b0e66e289592
I was testing the
Launch
function with the following script as I was testing theargs
option:I was expecting coloured boxes to appear on screen as I hovered the mouse on the page like so:
But this didn't happen and no boxes displayed anywhere.