Commit Graph

205 Commits

Author SHA1 Message Date
Kenneth Shaw
a6d06c7524 Attempt to fix travis ci settings 2017-02-22 09:13:31 +07:00
Kenneth Shaw
6b426dd931 Changing travis ci config 2017-02-22 09:01:10 +07:00
Kenneth Shaw
c6781d513d Adding go1.8 to travis config 2017-02-22 08:27:44 +07:00
Kenneth Shaw
e8e7c84642 Attempting fix to travis ci config 2017-02-22 08:24:49 +07:00
Kenneth Shaw
6ce1f2fdfb Reenabling TestStop
- Added contrib/grab-headless_shell.sh to grab latest headless_shell
- Changed travis config to use contrib/grab-headless_shell.sh
- Reenabled TestStop since Page.stopLoading is now available with latest
  available headless_shell
2017-02-22 07:58:30 +07:00
Kenneth Shaw
d15303bae6 Skipping TestStop unit test (Page.stopLoading not available) 2017-02-21 15:06:28 +07:00
Kenneth Shaw
bb2a503425 Standardizing NavigateBack and NavigateForward API 2017-02-21 11:25:36 +07:00
Randy Cahyana
786e242a24 Fixing NavigateBack and NavigateForward implementation.
Removing entries loop to find current navigation entry, as GetNavigationHistory already returning
index of current navigation history entry.
2017-02-21 10:44:12 +07:00
Randy Cahyana
05cd03c3d4 Fixing NavigateBack and NavigateForward implementation.
Removing entries loop to find current navigation entry, as GetNavigationHistory already returning
index of current navigation history entry.
2017-02-21 10:36:35 +07:00
Randy Cahyana
1988de618d Adding unit test for navigation actions. 2017-02-21 09:08:18 +07:00
Kenneth Shaw
4c16faa34d Minor code cleanup/maintenance on generated cdp protocol 2017-02-18 15:36:24 +07:00
Kenneth Shaw
ab80f4c5bc Fixing race issues on nodes 2017-02-18 14:28:43 +07:00
Kenneth Shaw
2b0edf7c25 Fixing unit test output from last commit 2017-02-18 13:31:59 +07:00
Kenneth Shaw
dc17e7f8cd Parallelizing unit tests 2017-02-18 13:12:21 +07:00
Kenneth Shaw
b5687e625d Adding missing patches from ranch 2017-02-18 12:37:28 +07:00
Kenneth Shaw
db4400bfe9 Dropping custom qtc + easyjson
- Updating documentation for chromedp-gen to point to standard versions
  of easyjson/quicktemplate (qtc) and added information about goimports
- Replaced {% end %} non-standard quicktemplate tags with the
  appropriate closing tags
- Updated to latest chrome protocol.json definition
- Regenerated cdp protocol after switching to standard easyjson/qtc
2017-02-18 11:02:24 +07:00
Randy Cahyana
0db7a9ee72 Increasing unit test coverage on query.go 2017-02-18 10:50:33 +07:00
Randy Cahyana
dc08ecc727 Added missing Proxy PAC URL command line option 2017-02-18 10:46:20 +07:00
Kenneth Shaw
e12e5d1f15 Fixing Clear action to properly work with textarea nodes 2017-02-18 10:39:11 +07:00
Kenneth Shaw
21d13b8f0a Fixing missing wait call for pool chrome instances 2017-02-18 09:49:41 +07:00
Randy Cahyana
6c5096f06a Fixing SetAttributes 2017-02-16 19:41:04 +07:00
Kenneth Shaw
b5032069e3 Fixing race issues
- Refactored chromedp-gen and cdp code so that Execute no longer returns
  a channel
- Fixing potential race problems in handler
- Eliminated some dead code
- Updated examples to include new logging parameters
2017-02-14 17:15:53 +07:00
Kenneth Shaw
7326b390a0 Initial changes to provide configurable logging options 2017-02-13 16:00:39 +07:00
Kenneth Shaw
f55e04bb7a Fixing last commit 2017-02-12 16:46:59 +07:00
Kenneth Shaw
3673164aef Code cleanup
- Refactored API calls to be cleaner
- Changed types that shoudn't be exported to not-exported
- Updated examples with API changes
- Added unit test for Title action
2017-02-12 14:08:40 +07:00
Kenneth Shaw
f73c429109 Renaming FrameHandler, updating to latest protocol.json, and code fixes 2017-02-12 12:50:46 +07:00
Kenneth Shaw
ee58f3a0e0 Fixing travis again 2017-02-09 22:27:15 +07:00
Kenneth Shaw
0de0bce751 Fixing travis.yml 2017-02-09 22:23:23 +07:00
Kenneth Shaw
0ac58bf932 Another fix for travis 2017-02-09 22:19:20 +07:00
Kenneth Shaw
cd3e2c613c Yet another attempt to fix travis.yml 2017-02-09 22:09:01 +07:00
Kenneth Shaw
3931d42ab5 Fixing travis.yml 2017-02-09 22:04:07 +07:00
Kenneth Shaw
42c6cca7ed Initial commit of pool and unit tests 2017-02-09 22:01:40 +07:00
Kenneth Shaw
c112899581 Fixing chromedp-gen and updating protocol.json
- Fixes issues with different flag toggles on chromedp-gen
- Updating to latest protocol.json
2017-02-09 13:45:44 +07:00
Kenneth Shaw
98a04266f9 Fixing chromedp-gen flag parameters and updating README.md 2017-02-09 13:04:50 +07:00
Kenneth Shaw
6eec61e7df Adding ElementNotPresent/WaitNotPresent query option/action 2017-02-08 23:16:28 +07:00
Kenneth Shaw
6769aefc5e Fixing Visible/NotVisible issues; adding new actions
- Fixed issues with ElementVisible/ElementNotVisible
- Added a few extra Javascript based actions
2017-02-08 23:01:35 +07:00
Kenneth Shaw
705f3be8e5 Updating edge-simple example (WIP) 2017-02-08 21:41:07 +07:00
Kenneth Shaw
f557f48716 Updating to latest protocol.json definition 2017-02-08 21:35:46 +07:00
Kenneth Shaw
4137fe57cc Initial work to fix mouse actions 2017-02-08 21:35:12 +07:00
Kenneth Shaw
5bef7dce13 Changes to ElementVisible/ElementNotVisible
Changed implementation of ElementVisible/ElementNotVisible to use a
javascript evaluation instead of the previous, cumbersome
implementation. As this may not work correctly in all scenarios, the old
versions will remain as ElementVisibleOld and ElementNotVisibleOld until
the new implementations can be vetted for correctness/performance.
2017-02-08 15:40:22 +07:00
Kenneth Shaw
b57afce7e7 Fixing Evaluate and EvaluateAsDevTools actions
- Update Evaluate action to also work with []byte
- Update Evaluate documentation
- Fix EvaluateAsDevTools action
- Refactor Query actions to use EvaluateAsDevTools
2017-02-08 15:18:55 +07:00
Kenneth Shaw
465e7becad Expanding Evaluate API
- fixed issues with Evaluate
- added examples/eval
2017-02-08 14:27:39 +07:00
Kenneth Shaw
8c2c95f9a2 Updating README.md with latest simple example code 2017-02-08 08:38:55 +07:00
Kenneth Shaw
80235c270b Updating latest protocol.json and adding some minor comment updates 2017-02-07 20:07:16 +07:00
Kenneth Shaw
4145d8367d Addition of chromedp-proxy, fixing SendKeys, more
- Adding chromedp-proxy command to help record chrome sessions
- Changing the headless writeup to point to the knq chrome-headless
  docker image
- Fixing issues with SendKeys action (should correctly work for all
  well known keys)
- Updated to latest Chrome protocol.json and re-generated API
- Other minor fixes
2017-02-07 11:34:35 +07:00
Kenneth Shaw
7421a99dcc Updating README.md for chromedp-gen command 2017-01-29 09:17:16 +07:00
Kenneth Shaw
45ac05fa88 Updating to latest chrome protocol.json 2017-01-29 08:47:54 +07:00
Kenneth Shaw
6c17327b42 Progress at getting SendKeys to send arrow keys 2017-01-28 12:07:34 +07:00
Kenneth Shaw
4f81916537 Cleaning up chromedp/runner options 2017-01-28 09:32:44 +07:00
Kenneth Shaw
a5f5b4fbc2 Adding headless docker example (NOT WORKING) 2017-01-28 09:14:38 +07:00