exec: "google-chrome": executable file not found in %PATH%

459 ワード

環境
システム:Windows 10
言語: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パスを自分のものに置き換えます.