Andrey Lushnikov
62ececb1c7
Implement page.$eval ( #638 )
...
This patch:
- implements page.$eval and frame.$eval
- drops elementHandle.attribute() method in favor of the page.$eval
References #625
2017-08-31 15:38:01 -07:00
Andrey Lushnikov
bf66696770
correct license to be a valid SPDX license expression
2017-08-31 11:16:28 -07:00
Gregory Linford
a052cdb464
Update package.json with Apache License 2.0 ( #632 )
...
The license used is Apache License 2.0, so I think it makes sense to update the package.json file with the correct string as a some software use this field to approve or not packages.
2017-08-31 09:57:29 -07:00
Lucas Hill
ce01e84381
[doc] Clarify networkIdleInflight default in docs. ( #630 )
2017-08-30 23:08:46 -07:00
Andrey Lushnikov
9d7929cd36
Add environment variable to skip download ( #606 )
...
This patch:
- starts skipping chromium download if `PUPPETEER_SKIP_CHROMIUM_DOWNLOAD` env variable is set
- adds description of support env variables to the `docs/api.md`.
References #603
2017-08-30 21:40:15 -07:00
Paul Irish
3365562b2b
Add DEBUG=* debugging guide to readme ( #622 )
2017-08-30 18:41:45 -04:00
Andrey Lushnikov
66676c0235
Kill child process group ( #621 )
2017-08-30 14:16:03 -07:00
Andrey Lushnikov
223a1066bb
Drop deasync: this is a left-over from phantomShim ( #607 )
2017-08-29 23:34:00 -07:00
Andrey Lushnikov
c9b0a6c060
Fix launcher to not leak event listeners ( #605 )
...
This patch fixes launcher to not leak event listeners.
2017-08-29 22:49:50 -07:00
Andrey Lushnikov
11ce8b249f
Implement Request.resourceType getter ( #590 )
...
This patch plumbs `resourceType` parameter of RequestWillBeSent
and requestIntercepted methods.
2017-08-29 16:27:59 -07:00
JoelEinbinder
8f74cc8a90
[api] Add "step" option to mouse.move method ( #601 )
...
This patch adds "step" option to the mouse.move method, that optionally tweens mouse movement over multiple steps.
References #423 .
2017-08-29 14:13:38 -07:00
Batiste Bieler
77600c6c5e
Implement ElementHandle.attribute() method ( #543 )
...
This patch implements ElementHandle.attribute() method to fetch a value of
element's attribute.
2017-08-29 11:24:32 -07:00
Andrey Lushnikov
74c53f3758
Roll chromium to r497674 ( #588 )
2017-08-28 22:19:07 -07:00
Andrey Lushnikov
8f66f7339e
Fix launcher in case of empty arguments ( #582 )
...
The regression was introduced in
d5327e6a0f
2017-08-28 14:59:41 -07:00
JoelEinbinder
d5327e6a0f
[api] Allow a custom userDataDir to be specified ( #555 )
...
This patch adds a `userDataDir` option to the `puppeteer.launch()` method.
Fixes #411 .
2017-08-28 12:14:20 -07:00
Andrey Lushnikov
66912a7277
[api] use object instead of map for headers ( #567 )
...
This patch:
- switches to objects instead of maps for headers (in Request, Response and
page.setExtraHTTPHeaders)
- converts all header names to lower case
Fixes #547 , fixes #509
2017-08-28 12:09:24 -07:00
Andrey Lushnikov
39b9081747
Bump version to 0.10.2-alpha ( #566 )
2017-08-28 11:15:11 -07:00
Lukasz Szóstek
59fc757ee0
[docs] a mistake in allowed values of page.evaluateMedia
( #580 )
2017-08-28 10:37:38 -07:00
Eric Bidelman
f9abc8ea03
readme: move up note about Page.pdf working on headless only ( #577 )
...
Hard to find. From https://github.com/GoogleChrome/puppeteer/issues/576
2017-08-28 10:31:35 -07:00
Andrey Lushnikov
da85b4466e
[docs] Add CentOS troubleshooting notes ( #579 )
2017-08-28 10:21:54 -07:00
Mohamed Oun
225e880d15
doc: Clarify that examples need Node v8 ( #559 )
...
The examples use async/await, but Node v6 doesn't support them, so to use these examples you either need Node 8 or a transpiler (like Babel) or to use promises.
2017-08-27 14:08:25 -07:00
Andrey Lushnikov
e921a1cc21
Fix Request Interception ( #565 )
...
It turned out that either Network.requestIntercepted or
Network.requestWillBeSent occasionally report encoded URL.
This patch starts decoding URL's when generating request hash.
Fixes #558 .
2017-08-27 12:41:09 -07:00
Andrey Lushnikov
ea4f8d78fc
Mark version 0.10.1
2017-08-25 19:37:53 -07:00
JoelEinbinder
cd81944e66
Test node6 on travis ( #551 )
...
This patch starts running all puppeteer tests with node6 on travis-ci.
2017-08-25 19:28:49 -07:00
JoelEinbinder
bd5b4fe963
Phantom shim mention ( #552 )
...
Remote remaining mentions of PhantomShim
2017-08-25 16:30:48 -07:00
Andrey Lushnikov
e8f8a1ad1f
Kill PhantomShim. ( #533 )
...
This patch kills PhantomShim, a lightweight layer that helped to
bootstrap Puppeteer API.
At this point, PhantomShim:
- passes 139 phantomJS tests
- fails 13 tests
- lacks capabilities to run 26
The failings and unsupported tests don't have any value for Puppeteer
API, so it doesn't make sense to maintain PhantomShim any longer.
2017-08-25 15:15:34 -07:00
JoelEinbinder
2c4dfbfd88
Fix node6 support for Object.entries and URL object ( #548 )
...
This patch introduces a polyfill for Object.entries which is missing in Node 6
2017-08-25 15:13:59 -07:00
Eric Bidelman
4e3b6a1f57
Example: add listen for custom event on page load ( #529 )
...
* Example: add listen for custom event on page load
* correct pptr path
2017-08-24 23:33:31 -07:00
Andrey Lushnikov
be4da580d4
Bump tip-of-tree version to 0.10.1-alpha ( #534 )
...
This patch:
- bumps tip-of-tree version to 0.10.1-alpha
- updates api.md to refer to released API and fix a nit in README.md
2017-08-24 22:47:57 -07:00
Andrey Lushnikov
751164c69f
Mark version 0.10.0
2017-08-24 18:11:43 -07:00
Andrey Lushnikov
10b9dfea83
Prepare to release ( #532 )
...
- add node6-transform to .npmignore
- dump node version in sanity test
2017-08-24 17:35:53 -07:00
Vse Mozhet Byt
60ace82875
add 'use strict'; to examples ( #530 )
...
This patch:
- adds 'use strict'; to examples
- enforces 'use strict' in examples with .eslintrc.js
2017-08-24 17:33:41 -07:00
JoelEinbinder
0791774faa
Cookies ( #314 )
...
Introduce cookies API.
Fixes #53 .
2017-08-24 12:21:46 -07:00
JoelEinbinder
9212863b92
Node 6 support ( #484 )
...
This patch:
- introduces a transpiler which substitutes async/await logic with
generators.
- starts using the transpiler to generate a node6-compatible version of puppeteer
- introduces a runtime-check to decide which version of code to use
Fixes #316 .
2017-08-24 12:20:05 -07:00
Vse Mozhet Byt
46115f9182
add missing backticks in README.md ( #525 )
2017-08-24 09:52:56 -07:00
Eric Bidelman
3b44de444f
readme: add evaluate snippet ( #524 )
...
* readme: add evaluate snippet
pretty important method that we don't have a prominent example for.
* feedback
* Update README.md
2017-08-24 09:13:49 -07:00
Andrey Lushnikov
b8c3686e6d
[doc] elaborate on url
parameter in page.goto
. ( #504 )
2017-08-23 15:34:57 -07:00
Vse Mozhet Byt
4471969524
fix a typo in the api.md ( #505 )
2017-08-23 14:29:47 -07:00
JoelEinbinder
a1414de42f
Implement page.setJavaScriptEnabled method
...
Fixes #462 .
2017-08-23 14:08:56 -07:00
Andrey Lushnikov
63e2b36d29
[doc] Add reference to released API
2017-08-23 13:44:44 -07:00
Eric Bidelman
a330c8eeba
Bump version to 0.9.1-alpha
...
This patch bumps version to 0.9.1-alpha.
This should emphasize that the documentation is related to the tip-of-tree
version of puppeteer, not to the latest release.
2017-08-23 13:39:35 -07:00
Vse Mozhet Byt
1458a3b3b5
fix typo in test.js ( #490 )
2017-08-23 13:26:52 -07:00
Dan Schuman
8fe2477850
Enable MutationObserver attributes ( #499 )
...
This patch fixes page.waitForSelector to resolve on
attribute changes.
Fixes #474 .
2017-08-23 13:25:40 -07:00
JoelEinbinder
a756bc868f
Don't complain about Windows line endings on Windows ( #496 )
2017-08-23 11:56:59 -07:00
JoelEinbinder
ac109dba6d
Kill Chrome quickly on Windows ( #488 )
...
This patch start killing chrome on windows with taskkill command.
2017-08-23 11:55:33 -07:00
Paul Hawxby
a00ba6a3d9
Adding proxy support for ChromiumDownloader ( #455 )
...
This patch teaches puppeteer to download chromium over the
HTTP proxy, if any.
Fixes #448 .
2017-08-23 08:33:29 -07:00
Andrey Lushnikov
151d512ae2
Implement page.$$ method ( #463 )
...
This patch implements page.$$ which runs document.querySelectorAll
in page and returns results as an array of ElementHandle instances.
Fixes #384 .
2017-08-22 22:56:55 -07:00
Eric Bidelman
7e1f2f0609
readme: add console event debugging tip ( #481 )
2017-08-22 20:17:09 -07:00
JoelEinbinder
a526e9f9fb
Stricter eslint rules ( #472 )
...
Accept stricter eslint rules.
2017-08-22 14:18:07 -07:00
Andrey Lushnikov
ce08fc77b1
Roll chromium to r496140 ( #465 )
...
This patch rolls chromium to r496140. This includes the r496130 that
introduces multiple sessions for single target.
With this patch, it is possible to run puppeteer in headful mode
and open devtools over the automated pages without puppeteer losing
connection to the page.
2017-08-22 14:15:02 -07:00