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
The following script fails to navigate to google.com if K6_BROWSER_WS_URL is set.
test.js
import{chromium}from'k6/experimental/browser';//import { chromium } from 'k6/x/browser';exportdefaultasyncfunction(){constbrowser=chromium.launch({headless: false,debug: true,});constpage=browser.newPage();awaitpage.goto('https://www.google.com');}
xk6-browser version
version in 0.44.1 as well as current latest main
OS
macos
Chrome version
113.0.5672.126, canary version 115.0.5776.0
Docker version and image (if applicable)
No response
Steps to reproduce the problem
run-tests.sh:
#!/bin/bash
WSURL=$(curl -s localhost:9222/json/version |jq -r .webSocketDebuggerUrl)# if we get a ws url, set K6_BROWSER_WS_URL:if [ -n"$WSURL" ];thenecho"Setting K6_BROWSER_WS_URL to $WSURL"export K6_BROWSER_WS_URL=$WSURLfiexport K6_BROWSER_ENABLED=true
# run k6:
k6 run test.js
and running chrome via: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
I think there should be some docs suggesting how to launch chrome/chromium.
Hi @tmc ,
I think this is a good suggestion, not that we support connect, it would be useful to have cmdline examples to launch chrome with our default flags for the different O.S. I have created an issue for this in our docs repo here.
In the meantime, you can see here the default chrome arguments we are currently using. Or you can see them here in our implementation.
Brief summary
The following script fails to navigate to google.com if
K6_BROWSER_WS_URL
is set.test.js
xk6-browser version
version in 0.44.1 as well as current latest main
OS
macos
Chrome version
113.0.5672.126, canary version 115.0.5776.0
Docker version and image (if applicable)
No response
Steps to reproduce the problem
run-tests.sh:
and running chrome via:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
Expected behaviour
Navigating to www.google.com
Actual behaviour
Hangs until timeout:
Logs:
The text was updated successfully, but these errors were encountered: