# \#k6-browser

**URL:** https://community.grafana.com/tag/k6-browser/290.md

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

---

## [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…

---

## [What are the reasons for instable script execution?](https://community.grafana.com/t/what-are-the-reasons-for-instable-script-execution/162355)

<div class="topic-metadata">

**Author:** [@nikimouse](https://community.grafana.com/u/nikimouse)\
**Replies:** 1\
**Last updated:** [April 2, 2026, 3:27pm UTC](https://community.grafana.com/t/what-are-the-reasons-for-instable-script-execution/162355 "2026-04-02T15:27:18Z")

</div>

Hi all, I’m new at k6 and TypeScripts, but I have experiences with different load test tools. I’m interested in the possibility to use browser and API calls within one test run. That’s why I created two scenarios - one …

---

## [K6 Browser script hangs at page.goto when run with k6 cloud run CLI](https://community.grafana.com/t/k6-browser-script-hangs-at-page-goto-when-run-with-k6-cloud-run-cli/161609)

<div class="topic-metadata">

**Author:** [@bkrishnamachari](https://community.grafana.com/u/bkrishnamachari)\
**Replies:** 0\
**Last updated:** [February 9, 2026, 2:48pm UTC](https://community.grafana.com/t/k6-browser-script-hangs-at-page-goto-when-run-with-k6-cloud-run-cli/161609 "2026-02-09T14:48:49Z")

</div>

I am running a K6 browser from cli using command, while the script runs fine when run in local, but when I use cloud it seems to hang at page.goto(url) K6\_CLOUD\_PROJECT\_ID=xxxx k6 cloud run \<script\>.js export const opt…

---

## [K6 Browser Headless / Scale](https://community.grafana.com/t/k6-browser-headless-scale/159511)

<div class="topic-metadata">

**Author:** [@alexhuynh0017](https://community.grafana.com/u/alexhuynh0017)\
**Replies:** 1\
**Last updated:** [December 2, 2025, 2:36pm UTC](https://community.grafana.com/t/k6-browser-headless-scale/159511 "2025-12-02T14:36:48Z")

</div>

Hello everyone, Was wondering how K6 browser works when running headless, does this mean that we can get 99% of the measurements even when running headless? Is the rendering still happening in the background, but just n…

---

## [Unable to catch expect() failures with try/catch in k6 - test aborts instead of throwing](https://community.grafana.com/t/unable-to-catch-expect-failures-with-try-catch-in-k6-test-aborts-instead-of-throwing/158556)

<div class="topic-metadata">

**Author:** [@dylanpaulson](https://community.grafana.com/u/dylanpaulson)\
**Replies:** 2\
**Last updated:** [October 20, 2025, 11:53pm UTC](https://community.grafana.com/t/unable-to-catch-expect-failures-with-try-catch-in-k6-test-aborts-instead-of-throwing/158556 "2025-10-20T23:53:24Z")

</div>

Hi everyone, I’m experimenting with the k6-testing library and noticed that expect() failures cannot be caught with a normal try/catch. Even when wrapped properly, the test aborts instead of allowing execution to contin…

---

## [Does k6 browser check supports terraforming as in other checks like HTTP, DNS etc](https://community.grafana.com/t/does-k6-browser-check-supports-terraforming-as-in-other-checks-like-http-dns-etc/158432)

<div class="topic-metadata">

**Author:** [@hemantsharma1](https://community.grafana.com/u/hemantsharma1)\
**Replies:** 0\
**Last updated:** [October 13, 2025, 12:18pm UTC](https://community.grafana.com/t/does-k6-browser-check-supports-terraforming-as-in-other-checks-like-http-dns-etc/158432 "2025-10-13T12:18:05Z")

</div>

Does the k6 browser based test supports terraforming as in case of other checks like http, ping, dns etc? Also with API usage for the same, I get 404, how do I find the server address, write now uses “Grafana but fails …

---

## [Http\_req\_duration metrcis not exported via OpenTelemetry(OTEL)](https://community.grafana.com/t/http-req-duration-metrcis-not-exported-via-opentelemetry-otel/158093)

<div class="topic-metadata">

**Author:** [@karthikhirisavechand](https://community.grafana.com/u/karthikhirisavechand)\
**Replies:** 0\
**Last updated:** [October 2, 2025, 1:59pm UTC](https://community.grafana.com/t/http-req-duration-metrcis-not-exported-via-opentelemetry-otel/158093 "2025-10-02T13:59:45Z")

</div>

Hi,I am trying to export k6 metrics to grafana using OTLP.But I cannot see metrics related to http\_req\_duration. Here is my dockerfile: FROM grafana/k6:0.54.0-with-browser ENV K6\_OTEL\_EXPORTER\_TYPE=http ENV K6\_OTEL\_…

---

## [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 …

---

## [The Browser Recorder extension is unavailable on the Chrome Web Store and Firefox Addons Store](https://community.grafana.com/t/the-browser-recorder-extension-is-unavailable-on-the-chrome-web-store-and-firefox-addons-store/157440)

<div class="topic-metadata">

**Author:** [@sid-maddy](https://community.grafana.com/u/sid-maddy)\
**Replies:** 1\
**Last updated:** [September 15, 2025, 8:45am UTC](https://community.grafana.com/t/the-browser-recorder-extension-is-unavailable-on-the-chrome-web-store-and-firefox-addons-store/157440 "2025-09-15T08:45:21Z")

</div>

The Grafana k6 Browser Recorder extension was seemingly removed from the Firefox Addons Store for violating Mozilla’s policies. The links in the documentation to the extension’s Chrome Web Store and Firefox Addons St…

---

## [Error: waiting for element state: element is not attached to the DOM](https://community.grafana.com/t/error-waiting-for-element-state-element-is-not-attached-to-the-dom/157053)

<div class="topic-metadata">

**Author:** [@jeroenhuinink1](https://community.grafana.com/u/jeroenhuinink1)\
**Replies:** 1\
**Last updated:** [September 8, 2025, 7:30am UTC](https://community.grafana.com/t/error-waiting-for-element-state-element-is-not-attached-to-the-dom/157053 "2025-09-08T07:30:45Z")

</div>

I am trying to automate login into a Microsoft account as part of a more complex test. However k6 throws an error: ERRO\[0007\] Uncaught (in promise) clicking on “\[type=submit\]”: waiting for element state: element is not …

---

## [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 …

---

## [K6 browser load testing (large scale)](https://community.grafana.com/t/k6-browser-load-testing-large-scale/129784)

<div class="topic-metadata">

**Author:** [@jakobhellsten1](https://community.grafana.com/u/jakobhellsten1)\
**Replies:** 4\
**Last updated:** [August 28, 2025, 11:03am UTC](https://community.grafana.com/t/k6-browser-load-testing-large-scale/129784 "2025-08-28T11:03:09Z")

</div>

Hi! I´m investigating load testing with K6 as an alternative to Jmeter distributed load testing. We today scale out jmeter webdriver loadtests with headless chrome on Azure linux machines. We have load tested our site …

---

## [Playwright APIRequest](https://community.grafana.com/t/playwright-apirequest/152940)

<div class="topic-metadata">

**Author:** [@mald](https://community.grafana.com/u/mald)\
**Replies:** 1\
**Last updated:** [July 1, 2025, 10:50am UTC](https://community.grafana.com/t/playwright-apirequest/152940 "2025-07-01T10:50:03Z")

</div>

In Playwright, I am able to send APIRequests from the browser using this technique: My API needs some cookies and session state established within the browser before it can call the API Endpoints directly. So I’ve done…

---

## [K6 browser test causing K6 POD crash (OOM killed)](https://community.grafana.com/t/k6-browser-test-causing-k6-pod-crash-oom-killed/152928)

<div class="topic-metadata">

**Author:** [@k6explorer1](https://community.grafana.com/u/k6explorer1)\
**Replies:** 3\
**Last updated:** [June 19, 2025, 5:07pm UTC](https://community.grafana.com/t/k6-browser-test-causing-k6-pod-crash-oom-killed/152928 "2025-06-19T17:07:55Z")

</div>

We are running a browser base UI test with the following config: ui: { executor: 'shared-iterations', vus: 3, iterations: 3, options: { browser: { …

---

## [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…

---

## [Generate .har file support?](https://community.grafana.com/t/generate-har-file-support/147953)

<div class="topic-metadata">

**Author:** [@kenp1](https://community.grafana.com/u/kenp1)\
**Replies:** 4\
**Last updated:** [April 8, 2025, 2:15pm UTC](https://community.grafana.com/t/generate-har-file-support/147953 "2025-04-08T14:15:41Z")

</div>

Hi, I see lots of documentation & examples of using a har file for generating scripts, so it’s hard to find if the opposite is true. Can k6 browser generate a .har file? I see Playwright does it. Thanks!

---

## [Browser mode does not work](https://community.grafana.com/t/browser-mode-does-not-work/145244)

<div class="topic-metadata">

**Author:** [@cataseven1](https://community.grafana.com/u/cataseven1)\
**Replies:** 2\
**Last updated:** [February 28, 2025, 11:59am UTC](https://community.grafana.com/t/browser-mode-does-not-work/145244 "2025-02-28T11:59:44Z")

</div>

I am using the latest version 0.57. I aim to use K6 browser mode but the browser does not open. I am adding console logs and see that the URL is constantly null. I am using the script from K6’s website, but the browser m…

---

## [Mouse hover in the page now working](https://community.grafana.com/t/mouse-hover-in-the-page-now-working/140568)

<div class="topic-metadata">

**Author:** [@carlo](https://community.grafana.com/u/carlo)\
**Replies:** 4\
**Last updated:** [February 13, 2025, 5:21pm UTC](https://community.grafana.com/t/mouse-hover-in-the-page-now-working/140568 "2025-02-13T17:21:39Z")

</div>

@ankur I want to move the mouse cursor to disappear the pop up menu list to interact with the elements inside the iframe. async clickLoginBtn() { await this.loginBtn.waitFor(); console.log('Login button …

---

## [Unable to see Total Requests in HTML report or console for browser performance testing in K6](https://community.grafana.com/t/unable-to-see-total-requests-in-html-report-or-console-for-browser-performance-testing-in-k6/143470)

<div class="topic-metadata">

**Author:** [@bharatj903](https://community.grafana.com/u/bharatj903)\
**Replies:** 2\
**Last updated:** [February 13, 2025, 6:04am UTC](https://community.grafana.com/t/unable-to-see-total-requests-in-html-report-or-console-for-browser-performance-testing-in-k6/143470 "2025-02-13T06:04:54Z")

</div>

Hi All, I am not seeing Total requests in HTML report or in the default command prompt logs after running below browser performance testing code. Pleae help me with any missing criteria etc. import { browser } from 'k6…

---

## [Unable to use k6/browser in version 0.55.1 as suggested by previous releases](https://community.grafana.com/t/unable-to-use-k6-browser-in-version-0-55-1-as-suggested-by-previous-releases/142822)

<div class="topic-metadata">

**Author:** [@bharatj903](https://community.grafana.com/u/bharatj903)\
**Replies:** 2\
**Last updated:** [February 7, 2025, 5:49pm UTC](https://community.grafana.com/t/unable-to-use-k6-browser-in-version-0-55-1-as-suggested-by-previous-releases/142822 "2025-02-07T17:49:20Z")

</div>

Hi, My K6 version 0.55 and the below script is working fine. import {browser} from ‘k6/experimental/browser’; import {sleep} from ‘k6’; export const options = { scenarios: { perftest: { executor: ‘per-vu-iteratio…

---

## [Panic error when i used 5 vus](https://community.grafana.com/t/panic-error-when-i-used-5-vus/134805)

<div class="topic-metadata">

**Author:** [@nejisamawow](https://community.grafana.com/u/nejisamawow)\
**Replies:** 1\
**Last updated:** [January 31, 2025, 7:14pm UTC](https://community.grafana.com/t/panic-error-when-i-used-5-vus/134805 "2025-01-31T19:14:17Z")

</div>

Hello, I have an issue with a script I am working on. The beginning of the script is an API request, then I switch to using the browser. When I run the script unit-wise, I never encounter the error. However, when I run …

---

## [Not able to see the recorded script via chrome k6 recorder](https://community.grafana.com/t/not-able-to-see-the-recorded-script-via-chrome-k6-recorder/140174)

<div class="topic-metadata">

**Author:** [@sachinbilsi](https://community.grafana.com/u/sachinbilsi)\
**Replies:** 3\
**Last updated:** [January 13, 2025, 11:13am UTC](https://community.grafana.com/t/not-able-to-see-the-recorded-script-via-chrome-k6-recorder/140174 "2025-01-13T11:13:49Z")

</div>

Hello K6 Community, I need your help to see the recorder script in k6 cloud, I am getting this below screen, how can I access to screen, attaching the both snap-shot, please help I am looking to see the below page: …

---

## [How to Fill a textarea with text and Send the Message?](https://community.grafana.com/t/how-to-fill-a-textarea-with-text-and-send-the-message/137362)

<div class="topic-metadata">

**Author:** [@ryan9f7a](https://community.grafana.com/u/ryan9f7a)\
**Replies:** 5\
**Last updated:** [December 1, 2024, 11:18pm UTC](https://community.grafana.com/t/how-to-fill-a-textarea-with-text-and-send-the-message/137362 "2024-12-01T23:18:28Z")

</div>

Hi, I’m trying to go to a URL, fill a textarea input with some text, and click on a button which should send the message (Q&A Chat system). NOTES: I’m testing using the Grafana Cloud Script Editor. In the code, I wan…

---

## [How to store web site credentials for use in a browser check synthetic monitor](https://community.grafana.com/t/how-to-store-web-site-credentials-for-use-in-a-browser-check-synthetic-monitor/136002)

<div class="topic-metadata">

**Author:** [@sbhumphreys](https://community.grafana.com/u/sbhumphreys)\
**Replies:** 1\
**Last updated:** [November 18, 2024, 10:52am UTC](https://community.grafana.com/t/how-to-store-web-site-credentials-for-use-in-a-browser-check-synthetic-monitor/136002 "2024-11-18T10:52:50Z")

</div>

Is there a way to store web site credentials securely instead of clear text in the script file?

---

## [Locator timeout](https://community.grafana.com/t/locator-timeout/134708)

<div class="topic-metadata">

**Author:** [@mortenb123](https://community.grafana.com/u/mortenb123)\
**Replies:** 3\
**Last updated:** [October 24, 2024, 4:30pm UTC](https://community.grafana.com/t/locator-timeout/134708 "2024-10-24T16:30:39Z")

</div>

in playwright locator in python I can use timeout directly on locators: loggedin = page.locator('//h1\[@class="page-title" and (text()="Your keys" or text()="Dine nøkler")\]').is\_visible(timeout=1000) It returns a bool a…

---

## [Multiple File Upload using setInputFiles with k6 browser](https://community.grafana.com/t/multiple-file-upload-using-setinputfiles-with-k6-browser/134469)

<div class="topic-metadata">

**Author:** [@nickvstackadapt](https://community.grafana.com/u/nickvstackadapt)\
**Replies:** 1\
**Last updated:** [October 23, 2024, 3:41pm UTC](https://community.grafana.com/t/multiple-file-upload-using-setinputfiles-with-k6-browser/134469 "2024-10-23T15:41:48Z")

</div>

Hello Team. First of all - thank you for the amazing product. Question: I’m trying to do a bulk file upload to the following DOM and cannot make it work. \<input accept="video/mp4,.mp4,video/webm,.webm,video/quicktime,.m…

---

## [Unable to start chrome on Jenkins docker container with k6-browser test](https://community.grafana.com/t/unable-to-start-chrome-on-jenkins-docker-container-with-k6-browser-test/132817)

<div class="topic-metadata">

**Author:** [@lucky041295](https://community.grafana.com/u/lucky041295)\
**Replies:** 2\
**Last updated:** [October 12, 2024, 7:25am UTC](https://community.grafana.com/t/unable-to-start-chrome-on-jenkins-docker-container-with-k6-browser-test/132817 "2024-10-12T07:25:09Z")

</div>

Hello team, I am trying to run k6-browser test on a Jenkins instance which is in docker container. The test is failing on starting chrome step with error: /sys/devices/system/cpu/cpu0/cpufreq/scaling\_cur\_freq: No such …

---

## [I am facing some Issue browser In the following code could any one help](https://community.grafana.com/t/i-am-facing-some-issue-browser-in-the-following-code-could-any-one-help/130085)

<div class="topic-metadata">

**Author:** [@Chetan](https://community.grafana.com/u/Chetan)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 2:50pm UTC](https://community.grafana.com/t/i-am-facing-some-issue-browser-in-the-following-code-could-any-one-help/130085 "2024-09-02T14:50:13Z")

</div>

import { browser } from ‘k6/browser’; import { check } from ‘k6’; const users = \[ { email: ‘rohit1@test.com’, password: ‘QWNjb3VudDogMJSkJ=’, workspaceUrl: ‘https://test.Domainname.com/users/sign\_in’ }, { email: ‘sun…

---

## [Running k6 chromium browser test in Kubernetes cluster using k6 operator](https://community.grafana.com/t/running-k6-chromium-browser-test-in-kubernetes-cluster-using-k6-operator/129939)

<div class="topic-metadata">

**Author:** [@themofask](https://community.grafana.com/u/themofask)\
**Replies:** 3\
**Last updated:** [August 31, 2024, 6:26am UTC](https://community.grafana.com/t/running-k6-chromium-browser-test-in-kubernetes-cluster-using-k6-operator/129939 "2024-08-31T06:26:04Z")

</div>

Hi, I have setup a local k6 environment on kubernetes cluster using k6 operator and able to run http request load test successfully. Can someone point me the steps to configure the k6 operator to support running chromiu…

---

## [K6 Browser : Upload file using setInputFiles](https://community.grafana.com/t/k6-browser-upload-file-using-setinputfiles/129625)

<div class="topic-metadata">

**Author:** [@korivnonse](https://community.grafana.com/u/korivnonse)\
**Replies:** 1\
**Last updated:** [August 28, 2024, 7:16pm UTC](https://community.grafana.com/t/k6-browser-upload-file-using-setinputfiles/129625 "2024-08-28T19:16:36Z")

</div>

Facing challenges to Upload file, to do performance testing using k6. Why cannot we use Playwright await page.getByLabel(‘Upload file’).setInputFiles(path.join(\_\_dirname, ‘myfile.pdf’)); or await page.locator(“//inpu…

[Next page](https://community.grafana.com/tag/k6-browser/290.md?match_all_tags=true&page=1&tags%5B%5D=k6-browser)
