环境
系统:Windows10
语言:Golang 1.10
组件相关:Chromedp 0.4
错误信息:
API server listening at: 127.0.0.1:13308
exec: "google-chrome": executable file not found in %PATH%
原因分析:
默认路径未找到chrome程序,导致启动无头浏览器报错
解决办法:
chromedp.ExecPath("C:\\Users\\**\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe")
替换上边的chrome路径为自己的。