Go to file
Daniel Martí e4c16681d0 expose the default allocator options
For example, this can be useful if a user wants to simply add one flag
of their own, without otherwise messing with the default flags. In the
old codebase, they'd either have to build their own list from scratch,
or copy ours from source, needing to keep it in sync.
2019-04-17 13:23:43 +09:00
.github add a simple issue template 2019-02-22 00:13:27 +01:00
kb start the chromedp v2 refactor 2019-04-01 12:17:28 +01:00
testdata don't crash when loading pages with iframes 2019-04-01 12:18:16 +01:00
.gitignore Changing chromedp-gen => cdproto-gen 2018-02-16 07:23:02 +07:00
.travis.yml start running the tests on CI again 2019-04-01 12:18:16 +01:00
actions.go use time.NewTimer instead of time.After in Sleep 2019-04-01 17:03:35 +01:00
allocate_test.go error in Run if passed an allocator context 2019-04-14 19:56:09 +09:00
allocate.go expose the default allocator options 2019-04-17 13:23:43 +09:00
browser.go rework CancelError into Cancel 2019-04-09 13:06:34 +02:00
chromedp_test.go expose the default allocator options 2019-04-17 13:23:43 +09:00
chromedp.go expose the default allocator options 2019-04-17 13:23:43 +09:00
conn.go Add WithDebugf() context option 2019-04-09 10:22:11 +02:00
errors.go Add WithDebugf() context option 2019-04-09 10:22:11 +02:00
eval.go Generic code cleanup 2019-04-03 09:03:41 +02:00
example_test.go support using BrowserOption in NewContext 2019-04-08 13:03:55 +02:00
go.mod bump cdproto dep to ignore deprecated events 2019-04-06 01:11:43 +02:00
go.sum bump cdproto dep to ignore deprecated events 2019-04-06 01:11:43 +02:00
input_test.go make NewAllocator's cancel func block on Wait 2019-04-06 22:13:40 +02:00
input.go clean up uses of Run in the tests 2019-04-01 19:55:40 +01: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 rework CancelError into Cancel 2019-04-09 13:06:34 +02:00
nav.go use consistent context.Context var names 2019-04-01 12:18:16 +01:00
query_test.go consistently use %02d for subtest index names 2019-04-01 19:58:01 +01:00
query.go use consistent context.Context var names 2019-04-01 12:18:16 +01:00
README.md README: remove obsolete TODO, add godoc examples 2019-04-09 16:21:33 +02:00
sel_test.go clean up uses of Run in the tests 2019-04-01 19:55:40 +01:00
sel.go use consistent context.Context var names 2019-04-01 12:18:16 +01:00
target.go add TargetID to Target 2019-04-07 13:37:32 +02:00
util.go Generic code cleanup 2019-04-03 09:03:41 +02: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, which also contains a few simple and runnable examples.

Resources

TODO

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