# k6-browser

**URL:** https://community.grafana.com/c/grafana-k6/k6-browser/79.md

[Latest](https://community.grafana.com/latest.md) · [Categories](https://community.grafana.com/categories.md) · [Tags](https://community.grafana.com/tags.md)

---

## [About the k6-browser category](https://community.grafana.com/t/about-the-k6-browser-category/98804)

<div class="topic-metadata">

**Author:** [@ppcano](https://community.grafana.com/u/ppcano)\
**Replies:** 0\
**Last updated:** [November 9, 2021, 7:53pm UTC](https://community.grafana.com/t/about-the-k6-browser-category/98804 "2021-11-09T19:53:45Z")

</div>

For any questions related to GitHub - grafana/xk6-browser: k6 extension that adds support for browser automation and end-to-end web testing via the Chrome Devtools Protocol

---

## [Backend websocket connection getting closed with new release 2.2.0-with-browser](https://community.grafana.com/t/backend-websocket-connection-getting-closed-with-new-release-2-2-0-with-browser/164473)

<div class="topic-metadata">

**Author:** [@vinodkr](https://community.grafana.com/u/vinodkr)\
**Replies:** 0\
**Last updated:** [September 18, 2026, 11:56pm UTC](https://community.grafana.com/t/backend-websocket-connection-getting-closed-with-new-release-2-2-0-with-browser/164473 "2026-09-18T23:56:51Z")

</div>

With new build - 2.2.0-with-browser seeing connection closed for backend websocket service, is this known issue? it works good with 1.3.0-with-browser build. CLOSED msgs=0 error@9-70ms → close@9-71ms code=1006 reaso…

---

## [Concurrent tests runs and Browser VU instance allocation](https://community.grafana.com/t/concurrent-tests-runs-and-browser-vu-instance-allocation/164046)

<div class="topic-metadata">

**Author:** [@mhalty](https://community.grafana.com/u/mhalty)\
**Replies:** 2\
**Last updated:** [August 10, 2026, 6:47pm UTC](https://community.grafana.com/t/concurrent-tests-runs-and-browser-vu-instance-allocation/164046 "2026-08-10T18:47:57Z")

</div>

Hi, I need some help, I looked at the public documentation but I couldn’t find answers to this two questions: Concurrent test runs — how many test runs can execute simultaneously in one project/org, per tier? Free tie…

---

## [Clicking on an element in an Iframe within an iframe error](https://community.grafana.com/t/clicking-on-an-element-in-an-iframe-within-an-iframe-error/162444)

<div class="topic-metadata">

**Author:** [@bgallagher0310](https://community.grafana.com/u/bgallagher0310)\
**Replies:** 2\
**Last updated:** [May 22, 2026, 8:07am UTC](https://community.grafana.com/t/clicking-on-an-element-in-an-iframe-within-an-iframe-error/162444 "2026-05-22T08:07:11Z")

</div>

Hello, I’m getting an error attempting to click an item in an iframe within another iframe and I was wondering if someone could help with this. I could be doing something wrong, but I can’t figure out. Here is my code…

---

## [Issue uploading files using k6-browser page.setInputFiles](https://community.grafana.com/t/issue-uploading-files-using-k6-browser-page-setinputfiles/160392)

<div class="topic-metadata">

**Author:** [@kerrydoan](https://community.grafana.com/u/kerrydoan)\
**Replies:** 1\
**Last updated:** [March 27, 2026, 8:52am UTC](https://community.grafana.com/t/issue-uploading-files-using-k6-browser-page-setinputfiles/160392 "2026-03-27T08:52:40Z")

</div>

Hello! I am opening the file I want to upload in the init const fileForUpload = open('./files/skipped/meta-001.pdf', 'b'); My code with use of page.setInputFiles() await page.setInputFiles('input\[class="dz-hidden…

---

## [Ui performance test, measuring total endpoint time](https://community.grafana.com/t/ui-performance-test-measuring-total-endpoint-time/162047)

<div class="topic-metadata">

**Author:** [@jbmpsx](https://community.grafana.com/u/jbmpsx)\
**Replies:** 1\
**Last updated:** [March 27, 2026, 8:34am UTC](https://community.grafana.com/t/ui-performance-test-measuring-total-endpoint-time/162047 "2026-03-27T08:34:12Z")

</div>

Hi all. We are implementing some ui performance test using k6 and we’d like to measure how much time an endpoint takes in finishing, so we can have a picture if our pages are well designed. Thing is, I get the endpoint …

---

## [Is K6/browser compatible with windows OS?](https://community.grafana.com/t/is-k6-browser-compatible-with-windows-os/160782)

<div class="topic-metadata">

**Author:** [@shilpat](https://community.grafana.com/u/shilpat)\
**Replies:** 1\
**Last updated:** [January 7, 2026, 1:51pm UTC](https://community.grafana.com/t/is-k6-browser-compatible-with-windows-os/160782 "2026-01-07T13:51:42Z")

</div>

HI, I have a use case where I need to write the browser level testing for my application and when I tried to run sample script, am getting chromium.launch() is undefined, when i checked iwth chatgpt, it says k6-browser …

---

## [MS Login is not redirecting after authenticated](https://community.grafana.com/t/ms-login-is-not-redirecting-after-authenticated/159958)

<div class="topic-metadata">

**Author:** [@mgranella](https://community.grafana.com/u/mgranella)\
**Replies:** 0\
**Last updated:** [December 4, 2025, 10:55pm UTC](https://community.grafana.com/t/ms-login-is-not-redirecting-after-authenticated/159958 "2025-12-04T22:55:44Z")

</div>

Hi all, I am expecting to test my app UI from K6 and get the MS Login popup (it’s happening), which should automatically send DFA to PingID (not hapening), and after inserted the matching # in my phone then got globalac…

---

## [How to recover from time-out waiting for page or element to load](https://community.grafana.com/t/how-to-recover-from-time-out-waiting-for-page-or-element-to-load/158493)

<div class="topic-metadata">

**Author:** [@Lightlore](https://community.grafana.com/u/Lightlore)\
**Replies:** 2\
**Last updated:** [December 2, 2025, 9:03am UTC](https://community.grafana.com/t/how-to-recover-from-time-out-waiting-for-page-or-element-to-load/158493 "2025-12-02T09:03:03Z")

</div>

Hi, I’m having trouble with my k6 browser script. When an element or page takes too long time to load, resulting in a time-out, the current VU in the test aborts abruptly. Thus skipping the following check if the page o…

---

## [Browser crashes with "undefined at default" although the button exists](https://community.grafana.com/t/browser-crashes-with-undefined-at-default-although-the-button-exists/158250)

<div class="topic-metadata">

**Author:** [@AquaNewt](https://community.grafana.com/u/AquaNewt)\
**Replies:** 0\
**Last updated:** [October 8, 2025, 2:38pm UTC](https://community.grafana.com/t/browser-crashes-with-undefined-at-default-although-the-button-exists/158250 "2025-10-08T14:38:28Z")

</div>

Hi there, I’m trying to have k6 click a button, which shouldn’t be that hard. However, k6 seems to think the button doesn’t exist, which doesn’t make sense. My code is: console.log('02') console.log(await page.locator('…

---

## [K6 incredibly bad ram usage](https://community.grafana.com/t/k6-incredibly-bad-ram-usage/127672)

<div class="topic-metadata">

**Author:** [@kkrasovitskiy](https://community.grafana.com/u/kkrasovitskiy)\
**Replies:** 2\
**Last updated:** [October 5, 2025, 11:56am UTC](https://community.grafana.com/t/k6-incredibly-bad-ram-usage/127672 "2025-10-05T11:56:40Z")

</div>

Hello guys ! I am currently working on a load testing using k6’s browser .There is no way i can make it using http.get because it requires ui interactivity . I made a script that logins and then in an infinite loop kee…

---

## [Browser tests aborting due to too-many-time-series](https://community.grafana.com/t/browser-tests-aborting-due-to-too-many-time-series/129753)

<div class="topic-metadata">

**Author:** [@martin7935](https://community.grafana.com/u/martin7935)\
**Replies:** 3\
**Last updated:** [September 29, 2025, 1:45pm UTC](https://community.grafana.com/t/browser-tests-aborting-due-to-too-many-time-series/129753 "2025-09-29T13:45:40Z")

</div>

Hello everyone, we are facing an issue with streaming local browser test data to Grafana k6 cloud. Longer tests (aprox. \> 5 min) are failing with code too-many-time-series. In the Cloud Insights \> Metrics there is this…

---

## [Does k6 browser support url matching patterns for thresholds?](https://community.grafana.com/t/does-k6-browser-support-url-matching-patterns-for-thresholds/98749)

<div class="topic-metadata">

**Author:** [@ArturS](https://community.grafana.com/u/ArturS)\
**Replies:** 5\
**Last updated:** [September 25, 2025, 11:54am UTC](https://community.grafana.com/t/does-k6-browser-support-url-matching-patterns-for-thresholds/98749 "2025-09-25T11:54:21Z")

</div>

Hey everyone, Im currently trying to write some tests for web app within k6 experimental browser. While I can create a threshold like this, that works just fine: thresholds: { ‘webvital\_largest\_content\_paint{url:www.…

---

## [Unable to run k6 Browser tests in headful mode on Windows 11 – \`K6\_BROWSER\_HEADLESS=false\` is being ignored](https://community.grafana.com/t/unable-to-run-k6-browser-tests-in-headful-mode-on-windows-11-k6-browser-headless-false-is-being-ignored/151663)

<div class="topic-metadata">

**Author:** [@salmansrabon](https://community.grafana.com/u/salmansrabon)\
**Replies:** 3\
**Last updated:** [September 22, 2025, 8:05pm UTC](https://community.grafana.com/t/unable-to-run-k6-browser-tests-in-headful-mode-on-windows-11-k6-browser-headless-false-is-being-ignored/151663 "2025-09-22T20:05:13Z")

</div>

Hi k6 team, I’m trying to run browser-based tests using the k6 browser module. According to the docs and Playwright/Puppeteer experience, setting the browser to run in headful mode (i.e., visible browser window) should …

---

## [Is there way to change histogram buckets for k6 browser for custom trend metrics](https://community.grafana.com/t/is-there-way-to-change-histogram-buckets-for-k6-browser-for-custom-trend-metrics/157351)

<div class="topic-metadata">

**Author:** [@vinodkr](https://community.grafana.com/u/vinodkr)\
**Replies:** 1\
**Last updated:** [September 14, 2025, 10:19am UTC](https://community.grafana.com/t/is-there-way-to-change-histogram-buckets-for-k6-browser-for-custom-trend-metrics/157351 "2025-09-14T10:19:23Z")

</div>

Team, Is there way to change histogram buckets for custom trend metrics in k6 browser. Using custome trend metric, but it looks default explicit bucket max value is 10s, all values more than 10s, falls to 10s bucket, whi…

---

## [K6-browser not compatible with navigator.mediaDevices.getUserMedia?](https://community.grafana.com/t/k6-browser-not-compatible-with-navigator-mediadevices-getusermedia/105479)

<div class="topic-metadata">

**Author:** [@fxou](https://community.grafana.com/u/fxou)\
**Replies:** 3\
**Last updated:** [September 9, 2025, 2:05pm UTC](https://community.grafana.com/t/k6-browser-not-compatible-with-navigator-mediadevices-getusermedia/105479 "2025-09-09T14:05:35Z")

</div>

Hello, I’m trying to test a webphone with K6 experimental browser. Unfortunately, it seems that it does not work. K6 browser return an error (“NotSupportedError”) on function getUserMedia(). Could you tell me if it is …

---

## [Error: Context is done before all 'IterEnd' events were processed](https://community.grafana.com/t/error-context-is-done-before-all-iterend-events-were-processed/104062)

<div class="topic-metadata">

**Author:** [@anilkothacheruvu](https://community.grafana.com/u/anilkothacheruvu)\
**Replies:** 6\
**Last updated:** [September 5, 2025, 12:57pm UTC](https://community.grafana.com/t/error-context-is-done-before-all-iterend-events-were-processed/104062 "2025-09-05T12:57:39Z")

</div>

I am doing a POC for my team to try and implement K6 and looking to create a simple load of 10 VUs and 20 iterations i.e. 2 iterations per VU using ‘shared-iterations’ executor. But when I run it each time it runs appro…

---

## [Grafana Cloud Synthetic Tests not supporting getByRole / getByText (k6 version outdated)](https://community.grafana.com/t/grafana-cloud-synthetic-tests-not-supporting-getbyrole-getbytext-k6-version-outdated/156876)

<div class="topic-metadata">

**Author:** [@deniscoelho](https://community.grafana.com/u/deniscoelho)\
**Replies:** 3\
**Last updated:** [September 2, 2025, 8:38am UTC](https://community.grafana.com/t/grafana-cloud-synthetic-tests-not-supporting-getbyrole-getbytext-k6-version-outdated/156876 "2025-09-02T08:38:08Z")

</div>

Hi everyone, how are you doing? I’m running into an issue with a Synthetic Test (Check \> Browser). The test fails because the commands getByText and getByRole are not recognized in the Grafana Cloud environment, due to …

---

## [Check multiple selectors through page.locator call like puppeteer.locator.race](https://community.grafana.com/t/check-multiple-selectors-through-page-locator-call-like-puppeteer-locator-race/148741)

<div class="topic-metadata">

**Author:** [@vinodkr](https://community.grafana.com/u/vinodkr)\
**Replies:** 1\
**Last updated:** [July 29, 2025, 5:08pm UTC](https://community.grafana.com/t/check-multiple-selectors-through-page-locator-call-like-puppeteer-locator-race/148741 "2025-07-29T17:08:43Z")

</div>

Is there way to look for multiple selectors at a time through page.locator ? case where page have result to display in table, or if no result to display, want to have page.locator to check either case. Just like what pu…

---

## [Browser metrics testing across multiple pages](https://community.grafana.com/t/browser-metrics-testing-across-multiple-pages/152508)

<div class="topic-metadata">

**Author:** [@classy\_beaver](https://community.grafana.com/u/classy_beaver)\
**Replies:** 1\
**Last updated:** [July 29, 2025, 11:46am UTC](https://community.grafana.com/t/browser-metrics-testing-across-multiple-pages/152508 "2025-07-29T11:46:32Z")

</div>

I was wondering if the metrics outputted at the end of the browser test are aggregated metrics across each page. Currently testing a webpage going across multiple links (but same website). Are the metrics outputted at th…

---

## [How to find an element inside of Iframe using K6 browser](https://community.grafana.com/t/how-to-find-an-element-inside-of-iframe-using-k6-browser/148689)

<div class="topic-metadata">

**Author:** [@nnietonilson](https://community.grafana.com/u/nnietonilson)\
**Replies:** 1\
**Last updated:** [July 29, 2025, 11:40am UTC](https://community.grafana.com/t/how-to-find-an-element-inside-of-iframe-using-k6-browser/148689 "2025-07-29T11:40:58Z")

</div>

Hi Community, I am wondering how we can use the Frame element described in the documentation. Its does not have an example Frame | Grafana k6 documentation, I have read the other post but they are old and don’t pinpoint…

---

## [K6 browser does not send data if a warn is received](https://community.grafana.com/t/k6-browser-does-not-send-data-if-a-warn-is-received/153703)

<div class="topic-metadata">

**Author:** [@PaulM](https://community.grafana.com/u/PaulM)\
**Replies:** 2\
**Last updated:** [July 18, 2025, 8:51am UTC](https://community.grafana.com/t/k6-browser-does-not-send-data-if-a-warn-is-received/153703 "2025-07-18T08:51:57Z")

</div>

Hi! Version K6 1.0.0 run: K6\_PROMETHEUS\_RW\_SERVER\_URL=$URL k6 run -o experimental-prometheus-rw test.js I have a script: import { browser } from 'k6/browser'; export const options = { scenarios: { ui: { …

---

## [Page.locator() to select an element ID with a colon?](https://community.grafana.com/t/page-locator-to-select-an-element-id-with-a-colon/154169)

<div class="topic-metadata">

**Author:** [@davesteinberg](https://community.grafana.com/u/davesteinberg)\
**Replies:** 1\
**Last updated:** [July 8, 2025, 4:39pm UTC](https://community.grafana.com/t/page-locator-to-select-an-element-id-with-a-colon/154169 "2025-07-08T16:39:26Z")

</div>

Hi all, Is it possible to use Page.locator() to select an element ID that contains a colon? I’m trying to write tests for an ancient application that uses JSF, which has tons of elements with colons in their IDs. This …

---

## [Does k6-browser supports multi browser support](https://community.grafana.com/t/does-k6-browser-supports-multi-browser-support/151602)

<div class="topic-metadata">

**Author:** [@yeshwanthathmakuri](https://community.grafana.com/u/yeshwanthathmakuri)\
**Replies:** 1\
**Last updated:** [June 20, 2025, 2:08pm UTC](https://community.grafana.com/t/does-k6-browser-supports-multi-browser-support/151602 "2025-06-20T14:08:51Z")

</div>

Based on our current findings, the k6/browser module appears to rely on a headless WebKit engine via GoWebKit and does not currently support multiple browsers such as Chrome or Edge. We were wondering if it’s possible to…

---

## [Console log error when open 2 tabs on k6/browser for more than 6 vus](https://community.grafana.com/t/console-log-error-when-open-2-tabs-on-k6-browser-for-more-than-6-vus/150078)

<div class="topic-metadata">

**Author:** [@marcod90d](https://community.grafana.com/u/marcod90d)\
**Replies:** 1\
**Last updated:** [June 5, 2025, 3:24pm UTC](https://community.grafana.com/t/console-log-error-when-open-2-tabs-on-k6-browser-for-more-than-6-vus/150078 "2025-06-05T15:24:33Z")

</div>

I’m trying to open 2 tabs in a chromium browser. It works as expected when reach the 6 VUS, after that the console shows the following error message: Note the code souce is available after error message. I’m working o…

---

## [Locating elements within an iframe](https://community.grafana.com/t/locating-elements-within-an-iframe/99663)

<div class="topic-metadata">

**Author:** [@jbx](https://community.grafana.com/u/jbx)\
**Replies:** 6\
**Last updated:** [June 2, 2025, 6:41pm UTC](https://community.grafana.com/t/locating-elements-within-an-iframe/99663 "2025-06-02T18:41:01Z")

</div>

Is there a way to locate an element within an iframe? I have used page.frame({ url: ‘mysourceurl’ }); within my xk6 test, but Powershell prints out “Page.frame(frameSelector) has not been implemented yet”

---

## [Not able to use 'frame' option on second browser context](https://community.grafana.com/t/not-able-to-use-frame-option-on-second-browser-context/150813)

<div class="topic-metadata">

**Author:** [@vasanthvj](https://community.grafana.com/u/vasanthvj)\
**Replies:** 2\
**Last updated:** [May 21, 2025, 3:46pm UTC](https://community.grafana.com/t/not-able-to-use-frame-option-on-second-browser-context/150813 "2025-05-21T15:46:17Z")

</div>

Hi, Ideally, K6 opens a new tab when I click on login button on my application(which doesn’t happen in ideal scenario. However, I user browserContext to handle the new tab and I was able to perform the user actions but w…

---

## [Click elements within an iframe](https://community.grafana.com/t/click-elements-within-an-iframe/98517)

<div class="topic-metadata">

**Author:** [@metoto](https://community.grafana.com/u/metoto)\
**Replies:** 10\
**Last updated:** [May 21, 2025, 3:42pm UTC](https://community.grafana.com/t/click-elements-within-an-iframe/98517 "2025-05-21T15:42:42Z")

</div>

hi team, i try to click a button with an iframe but it doesn’t work. Curiously, I can even get the text of this button, so I think the element should be located correctly. getConvFrame(frameName){ let fr; while(!fr…

---

## [Not able to run a k6 script through an executor with blazemeter](https://community.grafana.com/t/not-able-to-run-a-k6-script-through-an-executor-with-blazemeter/147154)

<div class="topic-metadata">

**Author:** [@carloscervantes](https://community.grafana.com/u/carloscervantes)\
**Replies:** 1\
**Last updated:** [April 25, 2025, 8:06am UTC](https://community.grafana.com/t/not-able-to-run-a-k6-script-through-an-executor-with-blazemeter/147154 "2025-04-25T08:06:06Z")

</div>

Hello, this is my script: import { browser } from 'k6/browser'; import { check } from 'https://jslib.k6.io/k6-utils/1.5.0/index.js'; import { Trend } from 'k6/metrics'; const transactionDuration = new Trend('T001\_Logi…

---

## [Error msg="process with PID 68 unexpectedly ended: signal: killed" category=browser elapsed="0 ms" source=browser](https://community.grafana.com/t/error-msg-process-with-pid-68-unexpectedly-ended-signal-killed-category-browser-elapsed-0-ms-source-browser/147755)

<div class="topic-metadata">

**Author:** [@Niveditha](https://community.grafana.com/u/Niveditha)\
**Replies:** 1\
**Last updated:** [April 24, 2025, 2:24pm UTC](https://community.grafana.com/t/error-msg-process-with-pid-68-unexpectedly-ended-signal-killed-category-browser-elapsed-0-ms-source-browser/147755 "2025-04-24T14:24:45Z")

</div>

Hello, I am trying to run front end load test with 100 users but it is encountering the following errors level=error msg=“Uncaught (in promise) waiting for navigation: timed out after 1m0s” executor=constant-vus scenar…

[Next page](https://community.grafana.com/c/grafana-k6/k6-browser/79.md?page=1)
