#1202·rod

panic: open C:\Users\Administrator\AppData\Roaming\rod\browser\chromium-1321438: The system cannot find the file specified.

Author: anyone0510Created Jul 1, 2025Updated Sep 8, 2026
Labelsquestion

Rod Version: v0.116.2

The code to demonstrate your question

  1. code
// Package main ...
package main

import (
	"log"
	"strings"

	"github.com/go-rod/rod"
	"github.com/go-rod/rod/lib/input"
)

// This example demonstrates how to fill out and submit a form.
func main() {
	page := rod.New().MustConnect().MustPage("https://github.com/search")

	page.MustElement(`input[name=q]`).MustWaitVisible().MustInput("chromedp").MustType(input.Enter)

	res := page.MustElementR("a", "chromedp").MustParent().MustParent().MustNext().MustText()

	log.Printf("got: `%s`", strings.TrimSpace(res))
}
  1. error
GOROOT=C:\Program Files\Go #gosetup
GOPATH=C:\Users\Administrator\go #gosetup
"C:\Program Files\Go\bin\go.exe" build -o C:\Users\Administrator\AppData\Local\JetBrains\GoLand2025.1\tmp\GoLand\___go_build_colly_howso_github.exe colly_howso/github #gosetup
C:\Users\Administrator\AppData\Local\JetBrains\GoLand2025.1\tmp\GoLand\___go_build_colly_howso_github.exe #gosetup
[launcher.Browser]2025/07/01 18:47:21 Download: https://registry.npmmirror.com/-/binary/chromium-browser-snapshots/Win_x64/1321438/chrome-win.zip
[launcher.Browser]2025/07/01 18:47:22 Progress: 00%
[launcher.Browser]2025/07/01 18:47:23 Progress: 01%
[launcher.Browser]2025/07/01 18:47:24 Progress: 01%
[launcher.Browser]2025/07/01 18:47:25 Progress: 02%
[launcher.Browser]2025/07/01 18:47:26 Progress: 03%
[launcher.Browser]2025/07/01 18:47:27 Progress: 04%
... ...
[launcher.Browser]2025/07/01 18:49:01 Progress: 99%
[launcher.Browser]2025/07/01 18:49:02 Unzip: C:\Users\ADMINI~1\AppData\Local\Temp\fetchup\da7a74c12b3e34d2df0e910ee9784b06
[launcher.Browser]2025/07/01 18:49:02 Progress: 00%
[launcher.Browser]2025/07/01 18:49:03 Progress: 26%
[launcher.Browser]2025/07/01 18:49:04 Progress: 54%
[launcher.Browser]2025/07/01 18:49:05 Progress: 79%
[launcher.Browser]2025/07/01 18:49:05 Downloaded: C:\Users\ADMINI~1\AppData\Local\Temp\fetchup\da7a74c12b3e34d2df0e910ee9784b06
panic: open C:\Users\Administrator\AppData\Roaming\rod\browser\chromium-1321438: The system cannot find the file specified.

goroutine 1 [running]:
github.com/go-rod/rod/lib/utils.init.func2({0xa43160?, 0xc00028c8d0?})
   E:/code/go/src/25/07/colly_howso/vendor/github.com/go-rod/rod/lib/utils/utils.go:68 +0x1d
main.main.New.(*Browser).WithPanic.genE.func2({0xc0002840c0?, 0x615b05?, 0x10?})
   E:/code/go/src/25/07/colly_howso/vendor/github.com/go-rod/rod/must.go:36 +0x5c
github.com/go-rod/rod.(*Browser).MustConnect(0xc00019c6c0)
   E:/code/go/src/25/07/colly_howso/vendor/github.com/go-rod/rod/must.go:51 +0x7f
main.main()
   E:/code/go/src/25/07/colly_howso/github/main.go:14 +0x2d3