Go to file
Daniel Martí da4f783362 make all tests run in parallel
The subtests were almost all marked as parallel, but that's not enough.
That only makes the subtests run in parallel with other subtests within
the same tests, not with any other test.

Since none of the tests make use of globals nor require the entire
program to themselves, properly run all the tests in parallel.

Speeds up 'go test' on my 8-core laptop from an average of ~130s to an
average of ~50s. Many tests hit timeouts and have sleeps, so we want to
avoid running those sequentially whenever possible.
2019-02-21 13:56:54 +01:00
client Changing Debugging => DevTools 2018-07-13 12:46:30 +07:00
contrib Splitting repositories 2017-12-28 11:17:14 +07:00
kb Fixing issue with kb 2018-07-10 19:51:58 +07:00
runner Fixing windows build issue 2018-07-18 06:19:22 +07:00
testdata Fixing issue when node is offscreen and more. 2017-02-27 19:17:36 +07:00
.gitignore Changing chromedp-gen => cdproto-gen 2018-02-16 07:23:02 +07:00
.travis.yml CI: test on 1.11.x instead of tip 2019-01-14 10:38:19 +00:00
actions.go Splitting repositories 2017-12-28 11:17:14 +07:00
chromedp_test.go use runner.LookChromeNames in TestMain 2019-02-21 13:53:05 +01:00
chromedp.go chromedp: fix SetHandlerByID 2019-02-20 13:01:21 +01:00
errors.go General code cleanup 2018-05-19 05:06:19 +07:00
eval.go General code cleanup 2018-05-19 05:06:19 +07:00
go.mod CI: test on 1.11.x instead of tip 2019-01-14 10:38:19 +00:00
go.sum CI: test on 1.11.x instead of tip 2019-01-14 10:38:19 +00:00
handler.go use buffered chan for h.detached 2019-02-20 13:12:41 +01:00
input_test.go make all tests run in parallel 2019-02-21 13:56:54 +01:00
input.go General code cleanup 2018-05-19 05:06:19 +07:00
js.go Splitting repositories 2017-12-28 11:17:14 +07:00
LICENSE Minor code cleanup 2018-03-27 04:31:09 +07:00
nav_test.go Minor code cleanup 2018-03-27 04:31:09 +07:00
nav.go Splitting repositories 2017-12-28 11:17:14 +07:00
pool_test.go pool: error quickly if we find a port in use 2018-12-01 11:54:16 +00:00
pool.go pool: error quickly if we find a port in use 2018-12-01 11:54:16 +00:00
query_test.go make all tests run in parallel 2019-02-21 13:56:54 +01:00
query.go Minor code cleanup 2018-03-27 04:31:09 +07:00
README.md Changing Debugging => DevTools 2018-07-13 12:46:30 +07:00
sel_test.go Minor code cleanup 2018-03-27 04:31:09 +07:00
sel.go Splitting repositories 2017-12-28 11:17:14 +07:00
util.go Splitting repositories 2017-12-28 11:17:14 +07:00

About chromedp Build Status Coverage Status

Package chromedp is a faster, simpler way to drive browsers supporting the Chrome DevTools Protocol in Go using the without external dependencies (ie, Selenium, PhantomJS, etc).

Installing

Install in the usual Go way:

go get -u github.com/chromedp/chromedp

Examples

Please see the examples project for more examples. Please refer to the GoDoc API listing for a summary of the API and Actions.

Resources

TODO

  • Move timeouts to context (defaults)
  • Implement more query selector options (allow over riding context timeouts)
  • Contextual actions for "dry run" (or via an accumulator?)
  • Network loader / manager
  • Profiler