Andrey Rublev
8b0fd0ae4a
feat(install): support npm config for chromium revision ( #2290 )
...
This patch:
- adds `npm_config_puppeteer_chromium_revision` support
- clarifies api documentation about variables from npm config
2018-03-30 10:49:48 -07:00
Andrey Lushnikov
c4da19bd23
test(ElementHandle.boxModel): remake test to make it more readable ( #2287 )
...
This patch:
- re-makes test for EH.boxModel to make it more readable
- slightly changes wording in the `docs/api.md`.
References #1357 .
2018-03-29 17:25:52 -07:00
Andrey Lushnikov
c6c60aa1cb
feat(Chromium): roll Chromium to r546920 ( #2286 )
...
This roll includes the following important CLs:
- https://crrev.com/545955 - DevTools: Update page scale immediately in InputHandler
- https://crrev.com/544446 - Make HeadlessWebContentsImpl::Close wait for the renderer to go
- https://crrev.com/546865 - DevTools(Headless): close WebContents when closed via
'window.close'
- https://crrev.com/546685 - Headless: Add support for the --remote-debugging-pipe flag
This should drastically reduce flakiness for pptr input events.
2018-03-29 14:14:25 -07:00
Yaniv Efraim
41d5838297
feat(ElementHandle): add ElementHandle.boxModel method ( #2256 )
...
This patch introduces ElementHandle.boxModel to get element's
box model.
Fixes #1357
2018-03-29 13:52:28 -07:00
Tim Nolet
d4f24f1ec5
docs(README): add checkly to list of services ( #2209 )
2018-03-29 10:54:49 -07:00
Glenn Vandamme
506103556b
feat(install): introduce PUPPETEER_CHROMIUM_REVISION ( #2246 )
...
This patch introduces PUPPETEER_CHROMIUM_REVISION environment variable
to specify chromium revision to be downloaded during install step.
2018-03-29 10:46:00 -07:00
Yaniv Efraim
ebe17371b0
chore: break page.spec.js to smaller files ( #2257 )
...
Break some large chunks into smaller files. This change will remove ~600 lines from `page.spec.js`
2018-03-29 10:42:23 -07:00
Yaniv Efraim
abb05e069d
feat(page): add an option to disable timeout for waitForFunction ( #2252 )
...
This patch adds support for `timeout: 0` to disable timeout for the following functions:
- `page.waitForFunction`
- `page.waitForXPath`
- `page.waitForSelector`
and their `frame` counterparts.
Fixes #2200
2018-03-28 16:34:37 -07:00
Andrey Lushnikov
71a07bb50c
chore: fixate TypeScript to ~2.7.0 ( #2280 )
...
This patch fixates TypeScript release to 2.7.X.
For some reason, tsc 2.8.X fails to lint our types.
References #2279
2018-03-28 15:16:31 -07:00
Vse Mozhet Byt
9af02a0d86
docs(api.md): fix some links ( #2253 )
2018-03-28 13:18:59 -07:00
JoelEinbinder
d46e157f19
feat(Page): page 'close' event ( #2232 )
...
This patch adds 'page.close' event.
References #952 .
2018-03-28 13:11:51 -07:00
Yaniv Efraim
47481967c5
test: Break 'page.spec.js' to smaller files ( #2218 )
...
This patch breaks huge `page.spec.js` into a bunch of smaller files.
2018-03-19 20:00:12 -07:00
Yaniv Efraim
38c6873fbb
test: break test.js into smaller files ( #2193 )
...
This patch breaks test.js into smaller files:
- `page.spec.js`
- `puppeteer.spec.js`
Fixes #2082
2018-03-16 15:33:31 -07:00
Andrey Lushnikov
311f307153
chore: bump version to v1.2.0-post ( #2205 )
2018-03-16 11:01:49 -07:00
Andrey Lushnikov
f2fae9f35a
chore: mark version v1.2.0 ( #2204 )
2018-03-15 19:18:46 -07:00
Georgii Dolzhykov
4e1f2e2eb2
fix(Launcher): killing a process can throw ( #2102 )
...
In case chrome process was terminated manually, killing the process
might throw 'no process with such pid' exception.
2018-03-15 17:40:24 -07:00
Andrey Lushnikov
ec3025fe84
feat(Network): implement request.redirectChain() api ( #2194 )
...
The request.redirectChain() returns all the requests issued to fetch
the resource.
Fixes #1816 .
2018-03-15 17:17:38 -07:00
Andrey Lushnikov
c4b1ac99b0
test: another attempt to fix sw test #2201
2018-03-15 16:58:02 -07:00
Andrey Lushnikov
150e5a9bbf
test: eliminate racy pattern in multiple tests ( #2202 )
...
This patch eliminates a race pattern we've been using in a bunch
of tests.
2018-03-15 16:53:34 -07:00
JoelEinbinder
309cafb876
feat(Chromium): roll chromium to r543305 ( #2196 )
...
This roll contains a [fix](https://chromium-review.googlesource.com/c/chromium/src/+/963302 ) for boundingBox not forcing a layout, and the patch contains a corresponding test.
2018-03-15 16:37:10 -07:00
JoelEinbinder
d79eb70267
fix(node6): fix one line await arrow functions #2198
...
When the start of the function body was await, the async function transformer behaves
non-deterministically and can break.
2018-03-15 14:54:23 -07:00
Pig Fang
7d387d8d75
chore(FrameManager): remove extra space ( #2187 )
2018-03-15 14:04:22 -07:00
Andrey Lushnikov
c082a82547
fix(Launcher): do not detach child process on windows ( #2081 )
...
Fixes #2053 .
2018-03-15 11:50:16 -07:00
Andrey Lushnikov
afcc74e7c7
test: fix Matcher.toEqual to not depend on key insertion order ( #2091 )
...
Objects `{foo: 1, bar: 2}` and `{bar: 2, foo: 1}` should be considered
equal.
2018-03-15 11:49:53 -07:00
Andrey Lushnikov
4b7fbf8ee0
test: fix serviceWorker test flakiness ( #2195 )
...
This patch starts waiting on serviceWorker registration.
2018-03-14 17:55:12 -07:00
Yaniv Efraim
625c7ebdda
feat(FrameManager): add type=module to addScriptTag ( #2090 )
...
This patch adds a new "type" option to the `addScriptTag` method that
allows adding "module" tags to the page.
Fixes #2078
2018-03-14 13:07:48 -07:00
Joel Griffith
552be1ae87
docs(README): Add's page.removeListener to Page class examples ( #2122 )
...
This patch adds `page.removeListener` to Page class examples
2018-03-13 09:25:25 -07:00
Fedor Korotkov
554bd59588
chore(CI): add experimental Cirrus CI ( #2181 )
...
This patch adds experimental support for Cirrus CI builds.
Cirrus CI has both Windows and Linux, uses google cloud and runs builds
in Docker containers.
This seems to be a promising combination for our needs.
2018-03-13 08:06:40 -07:00
Fedor Korotkov
fc7e4d1065
chore(CI): fix node.js version on Travis and AppVeyor ( #2180 )
...
AppVeyour was configured to use the latest versions of Node for major releases. To make builds more reproducible I've changed both Travis and AppVeyor to use the same fixed versions of Node 6 and Node 7 that AppVeyor is using at the moment.
2018-03-13 07:44:14 -07:00
jviala-ekino
5af70e8ce3
docs(api.md): fix typo ( #2177 )
2018-03-13 07:42:37 -07:00
Juan Sebastian velez Posada
52d3bc05de
feat(Page): introduce url at error message at page.goto ( #2174 )
...
Now the error message will come with the url where the error was
generated.
Fixes #2165 .
2018-03-12 15:38:05 -07:00
JoelEinbinder
826fe42c48
fix(Network): response.ok should be true for file:// urls ( #2152 )
2018-03-12 11:34:33 -07:00
Meir017
cad71d9bd9
chore: removed duplicated jsdoc annotation in NetworkManager.js ( #2132 )
2018-03-07 12:35:15 +03:00
JoelEinbinder
0defecf197
fix(test): add missing test for making sure chrome is closed ( #2109 )
2018-03-07 09:01:43 +03:00
Kyle Sloan
44d8000de1
docs(README): clarify how to launch scripts ( #2133 )
2018-03-07 08:50:06 +03:00
Benjamin E. Coe
edc510c152
docs: add documentation referencing puppeteer-to-istanbul ( #2135 )
...
Fixes #1768 .
2018-03-07 08:49:01 +03:00
Olivier Tassinari
c857aef589
docs(api.md): fix snippet to await page.setViewport() ( #2113 )
2018-03-02 00:06:22 +03:00
JoelEinbinder
ffe5b63dba
chore: refactor Browser.js into seperate files ( #2097 )
...
This patch splits Browser.js into multiple separate files.
2018-02-26 12:10:06 -08:00
Glenn Vandamme
8578283e11
docs(api.md): Fix evaluateOnNewDocument sample syntax error ( #2063 )
2018-02-26 11:41:50 -08:00
Andrey Lushnikov
2a84f9f343
docs(api.md): add link to the v1.1.1 ( #2096 )
2018-02-23 23:02:28 -08:00
Andrey Lushnikov
3c6ed67c2e
chore: bump v1.1.1-post ( #2095 )
...
This patch bumps tip-of-tree version to v1.1.1-post so that puppeteer@next doesn't break once we release v1.1.1 with a fix for `dumpio`
2018-02-23 21:44:45 -08:00
Andrey Lushnikov
223b59254c
feat(ElementHandle): implement ElementHandle.contentFrame() ( #2094 )
...
This patch adds ElementHandle.contentFrame() method that allows
to get a reference to the Frame owned by the iframe.
Fixes #433 .
2018-02-23 21:22:53 -08:00
JoelEinbinder
e2b96df4d7
chore(test): simplify element screenshot tests ( #2093 )
2018-02-23 15:54:26 -08:00
Frankie Bagnardi
56a475f86b
feat: elHandle:screenshot captures full element ( #1787 )
...
feat: make ElementHandle.screenshot work with large elements
This patch increases the viewport size if the element is bigger than
viewport.
Fixes #1779
2018-02-23 14:13:08 -08:00
Eric Bidelman
b07e705dc9
docs(README): mention testing prelease ( #2088 )
2018-02-23 11:17:14 -08:00
Andrey Lushnikov
fc2a10440f
fix(evaluate): throw error when page reloads during page.evaluate. ( #2073 )
...
Fixes #2021 .
2018-02-22 19:10:17 -08:00
Yaniv Efraim
66887743ea
fix(Launcher): fix dumpio bug ( #2071 )
...
This patch fixes `dumpio` launcher option.
Fixes #2046
2018-02-22 19:06:13 -08:00
JoelEinbinder
ee7ebd6e17
docs(README): drop scraping bullet ( #2080 )
2018-02-22 17:49:17 -08:00
Andrey Lushnikov
80078d9526
fix(Connection): swallow all the ws errors after connection's closed ( #2077 )
...
Since ws is closing asynchronously and can yield errors while closing,
we should keep swallowing ws errors after the `ws.close()` method
is called.
2018-02-22 16:23:20 -08:00
Andrey Lushnikov
28f88e8ef9
feat(Chromium): roll Chromium to r538022 ( #2072 )
...
This roll includes:
- https://crrev.com/536535 - using HINTING_FULL by default in headless builds, added command line parameter to override it
2018-02-21 18:21:40 -08:00