Hi folks,
I just upgrade my k6 from 0.45 to 0.46. Suddenly the browser is not invoked.
I run the sample code that come with the release. The test runs ok. But the browser is not visible.
import { browser } from ‘k6/experimental/browser’;
export const options = {
scenarios: {
ui: {
executor: ‘shared-iterations’,
options: {
browser: {
type: ‘chromium’, // chromium is the only supported browser type so as long as
// the option is set, Chromium/Google Chrome will be used
},
},
},
},
};
export default async function () {
const page = browser.newPage();
try {
await page.goto(‘https://grafana.com’);
console.log(“TESTING…”);
} finally {
page.close();
}
}
Any idea why?
Thanks,
-Madison