You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running tests against a remote chrome instance(s) we see the following error:
Uncaught (in promise) GoError: creating new page in browser context: timed out after 30s
at github.com/grafana/xk6-browser/browser.mapBrowserContext.func4 (native)
at file:///tmp/TgCEDu/script.js:24:15(8)
executor=shared-iterations scenario=ui
This doesn't occur when running against a locally running chrome instance.
When running the following script against a single remote chrome instance:
import{check}from'k6';import{browser}from'k6/experimental/browser';exportconstoptions={scenarios: {ui: {executor: 'shared-iterations',vus: 10,iterations: 100,options: {browser: {type: 'chromium',},},},},thresholds: {checks: ["rate==1.0"]}}exportdefaultasyncfunction(){constcontext=browser.newContext();constpage=context.newPage();try{// Goto front page, find login link and click itawaitpage.goto('https://test.k6.io/',{waitUntil: 'networkidle'});awaitPromise.all([page.waitForNavigation(),page.locator('a[href="/my_messages.php"]').click(),]);// Enter login credentials and loginpage.locator('input[name="login"]').type('admin');page.locator('input[name="password"]').type('123');// We expect the form submission to trigger a navigation, so to prevent a// race condition, setup a waiter concurrently while waiting for the click// to resolve.awaitPromise.all([page.waitForNavigation(),page.locator('input[type="submit"]').click(),]);check(page,{'header': page.locator('h2').textContent()=='Welcome, admin!',});}finally{page.close();}}
we sometimes see the following error:
Uncaught (in promise) GoError: creating new page in browser context: timed out after 30s
at github.com/grafana/xk6-browser/browser.mapBrowserContext.func4 (native)
at file:///tmp/TgCEDu/script.js:24:15(8)
executor=shared-iterations scenario=ui
This doesn't occur when running against a locally running chrome instance.
Test run id: 154370
Expected behaviour
We don't see those timeouts when a new page is being created.
Actual behaviour
We are seeing creating new page in browser context: timed out after 30s
The text was updated successfully, but these errors were encountered:
ankur22
changed the title
creating new page in browser context: timed out after 30s
Creating new page in browser context sometimes times out
Jul 12, 2023
Brief summary
When running tests against a remote chrome instance(s) we see the following error:
Uncaught (in promise) GoError: creating new page in browser context: timed out after 30s at github.com/grafana/xk6-browser/browser.mapBrowserContext.func4 (native) at file:///tmp/TgCEDu/script.js:24:15(8) executor=shared-iterations scenario=ui
This doesn't occur when running against a locally running chrome instance.
xk6-browser version
a8ebe8c
OS
NA
Chrome version
NA
Docker version and image (if applicable)
NA
Steps to reproduce the problem
When running the following script against a single remote chrome instance:
we sometimes see the following error:
Uncaught (in promise) GoError: creating new page in browser context: timed out after 30s at github.com/grafana/xk6-browser/browser.mapBrowserContext.func4 (native) at file:///tmp/TgCEDu/script.js:24:15(8) executor=shared-iterations scenario=ui
This doesn't occur when running against a locally running chrome instance.
Test run id: 154370
Expected behaviour
We don't see those timeouts when a new page is being created.
Actual behaviour
We are seeing
creating new page in browser context: timed out after 30s
The text was updated successfully, but these errors were encountered: