wirepair / gcd

Unofficial implementation of the Google Chrome Remote Debugger in Go
MIT License
186 stars 31 forks source link

Ability to pass cutsom parameters to chrome #12

Closed msathis closed 7 years ago

msathis commented 7 years ago

For e.x to run headless browser, i want to pass --headless argument to chrome binary.

wirepair commented 7 years ago

Did you see https://github.com/wirepair/gcd/blob/master/gcd.go#L98 ? just pass something like:

var testStartupFlags = []string{"--test-type", "--ignore-certificate-errors", "--allow-running-insecure-content", "--disable-new-tab-first-run", "--no-first-run", "--disable-translate", "--safebrowsing-disable-auto-update", "--disable-component-update", "--safebrowsing-disable-download-protection"}

debugger.AddFlags(testStartupFlags)
msathis commented 7 years ago

My mistake. Thanks for pointing out. :)