Commit Graph

2993 Commits

Author SHA1 Message Date
travch
f3ba436239 Fix: Remove key codes from _pressedKeys Set after keyboard.up() is called ()
keyboard.down() and keyboard.up() both use the _pressedKeys Set, however keyboard.down() adds and searches for the key code, whereas keyboard.up() attempts to delete based on the key rather than the key code.

Fixes 
2018-02-12 17:25:38 -08:00
Drew Diamantoukos
b275e66594 chore: Spelling and Markdown Consistency ()
- Adding missing language tags to markdown code blocks.
- Fixed various spelling mistakes my IDE complained to me about.
2018-02-08 22:59:46 -05:00
Andrey Lushnikov
070243e4b6
docs(CONTRIBUTING): update contributing.md () 2018-02-08 00:59:11 -05:00
Andrew Collins
ac1b9a0eb0 feat(Page): add setCacheEnabled(enabled) to Page object ()
This change adds in the `Page.setCacheEnabled(enabled)` method to toggle ignoring cache for each request.

Fixes .
2018-02-08 00:58:48 -05:00
Olivier Tille
18a1fb9385 docs(README): Correcting Chrome dependency size ()
This patch corrects chromium binary size in README.md.
2018-02-07 18:01:40 -05:00
JoelEinbinder
cde6d6c4d0 docs: add the word the everywhere () 2018-02-07 17:20:28 -05:00
Andrey Lushnikov
a363a733b7
feat: Introduce BrowserFetcher class ()
This patch introduces `BrowserFetcher` class that manages
downloaded versions of products.

This patch:
- shapes Downloader API to be minimal yet usable for our needs. This
  includes removing such methods as `Downloader.supportedPlatforms` and
  `Downloader.defaultRevision`.
- makes most of the fs-related methods in Downloader async. The only
  exception is the `Downloader.revisionInfo`: it has stay sync due to the
  `pptr.executablePath()` method being sync.
- updates `install.js` and `utils/check_availability.js` to use new API
- finally, renames `Downloader` into `BrowserFetcher`

Fixes .
2018-02-07 12:31:53 -05:00
Andrey Lushnikov
18c975509f
test: create tmp folder in os.tmp() folder () 2018-02-06 16:44:46 -05:00
Basarat Ali Syed
4046415f01 docs(README): mention troubleshooting.md in FAQ () 2018-02-05 19:03:07 -05:00
Andrey Lushnikov
ecc3adc279
feat(Response): add Response.fromCache / Response.fromServiceWorker ()
This patch:
- introduces `test/assets/cached` folder and teaches server to cache
  all the assets from the folder
- introduces `test/assets/serviceworkers` folder that stores all the
  service workers and makes them register with unique URL prefix
- introduces `Response.fromCache()` and `Response.fromServiceWorker()`
  methods

Fixes .
2018-02-05 17:59:07 -05:00
Alix Axel
660b65780f feat(Frame): add click(), focus(), hover(), tap() and type() ()
This patch adds frame shortcuts to drive input:
- `Frame.click()`
- `Frame.focus()`
- `Frame.hover()`
- `Frame.tap()`
- `Frame.type()`
2018-02-05 17:58:03 -05:00
Michael Stillwell
48218fae8a docs(api.md): page.error event dispatchers error 2018-02-05 17:45:35 -05:00
Yaniv Efraim
2f1157b044 fix(Docs): fix Console example ()
Fixes 
2018-02-05 17:44:22 -05:00
Alix Axel
bc6902623a fix: allow timeouts of be 0 ()
This patch fixes timeouts for `puppeteer.launch` and `page.waitForFunction`
to be `0`.

Fixes  .
2018-02-05 17:42:54 -05:00
Andrey Lushnikov
37a1e17461
chore: remove unused parameter in EmulationManager () 2018-02-05 15:51:43 -05:00
Joel Griffith
e998ac9325 docs(README): Adding in browserless to README () 2018-02-05 14:39:49 -05:00
Andrey Lushnikov
cfb728b09b
feat(Chromium): roll to r533271 ()
This roll includes:
- https://crrev.com/530961 DevTools: fix Referer header handling in
  net interceptor

References .
2018-01-31 16:02:56 -08:00
Eric Bidelman
1716a748aa docs(troubleshooting): add aws lambda resources () 2018-01-31 15:31:31 -08:00
Andrey Lushnikov
bae44a82d8
test: teach test reporter to highlight test stackframe on failures. ()
This patch teaches reporter to highlight test stack frame on
test failures.
2018-01-30 15:23:47 -08:00
Thibault Lenclos
4886d038d5 docs: fix typo in troubleshooting.md () 2018-01-26 23:00:18 -08:00
Andrey Lushnikov
ddc59b2472
docs(api.md): fix exposeFunction example () 2018-01-25 14:50:42 -08:00
Yaniv Efraim
189deb84c0 feat(Frame): add Frame.evaluateHandle ()
This patch adds Frame.evaluateHandle method. The method is a shortcut
for frame.executionContext().evaluateHandle.

Fixes 
2018-01-24 21:16:01 -08:00
Alix Axel
5175d8e692 fix(Page): fix Page.select() behavior to be on par with docs ()
This PR fixes lost functionality that is no longer on-par with the documentation for `Page.select`, namely:

> `...values` <...string> Values of options to select. If the `<select>` has the `multiple` attribute, all values are considered, **otherwise only the first one is taken into account**.

I've also added an accompanying test for this use case.
2018-01-24 21:12:27 -08:00
Bamboo
a39d96eae9 docs(api.md): fix sample code in API doc, request.url -> request.url() () 2018-01-24 21:09:37 -08:00
JoelEinbinder
f2b6016354 chore: switch to npm from yarn ()
This patch:
- migrates CI to use NPM
- drops lockfiles (`yarn.lock`). Lockfiles are ignored by package
  managers when the package is installed as a dependency, so this makes CI closer to the 
  installation our clients run.
2018-01-22 17:11:10 -08:00
Abel Toledano
b61e67d001 feat: add slowMo option to puppeteer.connect ()
This patch introduces a `slowMo` option to the `puppeteer.connect` method. The option
is similar to the one in `puppeteer.launch` and is used to slow down the connection.
2018-01-22 16:45:46 -08:00
Artem Sapegin
797b561013 docs(README): Update debugging tips () 2018-01-22 16:10:31 -08:00
Ram Dobson
cb684ebbc4 feat(Page): introduce Page.waitForXPath ()
This patch:
- introduces `page.waitForXPath` method
- introduces `frame.waitForXPath` method
- amends `page.waitFor` to treat strings that start with `//` as xpath queries.

Fixes .
2018-01-22 15:16:20 -08:00
Glenn Vandamme
62597bf897 docs(troubleshooting): Add fonts to docker example to support major charsets ()
Fixes .
2018-01-19 00:43:00 -08:00
Sakamoto, Kazunori
102f10cbc7 docs(api.md): Fix sample code in API doc ()
Because `Request.url` is changed to `Request.url()`.
2018-01-18 21:39:50 -08:00
Vse Mozhet Byt
2bf42fd779 docs(troubleshooting): fix a link ()
It seems without the full URL this link is not rendered correctly.
2018-01-18 21:20:16 -08:00
Sony AK
d2715d1c6f docs(api.md): fix typo on api docs () 2018-01-18 21:19:43 -08:00
Eric Bidelman
e031264231 docs(api): fix coverage example and typo () 2018-01-18 21:19:13 -08:00
Eric Bidelman
49d3799e32 docs(troubleshooting): add docker alpine example ()
Fixes , fixes 
2018-01-17 22:01:31 -08:00
Ian Hunter
59f6d42610 feat: add Page.Events.DOMContentLoaded ()
Fixes 
2018-01-16 23:22:44 -08:00
futpib
25b35c5789 docs(api.md): fix missing await in examples ()
`frame.executionContext()` returns a Promise, so running examples without `await` results in exceptions
2018-01-16 16:59:00 -08:00
Sergii Rudenko
8c93084316 docs(examples/readme.md): Add one more link to the examples repository ()
This patch adds link to the https://github.com/checkly/puppeteer-examples
2018-01-16 14:05:28 -08:00
Alix Axel
31a1f9ad70 docs(api.md): added page.click + waitForNavigation example ()
Fixes .
2018-01-12 11:41:26 -08:00
yujiosaka
c866c175f8 fix: page.goto should support pages with self requests () ()
This patch fixes `page.goto` for websites that re-request document URL with javascript.

Fixes .
2018-01-12 00:16:36 -08:00
Andrey Lushnikov
aed7019146
chore: bump version to 1.0.0-post () 2018-01-11 21:09:37 -08:00
Andrey Lushnikov
12b57e31f3
chore: mark version v1.0.0 () 2018-01-11 15:15:23 -08:00
Andrey Lushnikov
d68033aeca
chore(examples): indent all examples ()
Indented examples are easier to read.
2018-01-11 13:42:01 -08:00
Eric Bidelman
891a5539bd docs(troubleshooting): add note on using ldd to find missing deps () 2018-01-11 12:20:57 -08:00
Eric Bidelman
9b06ed28ae docs(README): updates to make d.g.c/web/ happy ()
Adds devsite's comment markers so we can pull sections of the readme into the site.
We lose a few syntax highlighting sections here on github, but everything looks great on developers.google.com!
2018-01-11 00:28:36 -08:00
Andrey Lushnikov
5368051610
feat: expose raw devtools protocol connection ()
feat: expose raw devtools protocol connection

This patch introduces `target.createCDPSession` method that
allows directly communicating with the target over the
Chrome DevTools Protocol.

Fixes .
2018-01-10 19:33:22 -08:00
Radu Aron
ec8e40f1cb feat(Page): Add global navigation timeout setting ()
This patch introduces `page.setDefaultNavigationTimeout` method to override the 
default 30 seconds navigation timeout.

Fixes 
2018-01-10 13:04:01 -08:00
Octavian Cioaca
3985dee54e docs(API): add more explicit examples for page.evaluate () 2018-01-09 23:05:52 -08:00
Andrey Lushnikov
9634d13be2
fix: requestInterception should play nicely with canceled redirects ()
Since interception events and `loadingFailed` events come from
different processes and are not serialized, we might get `loadingFailed` event and a subsequent outdated `requestIntercepted`.

Short-term, this patch stops assuming that interception events are
aligned with `loadingFailed`.

Long-term, this will be resolved as @caseq completes network
servicification effort in chromium.

Fixes .
2018-01-09 22:59:21 -08:00
yujiosaka
f6b7c13316 chore(install): mention yarn along npm in the error message () 2018-01-09 21:56:04 -08:00
yujiosaka
c29822d663 feat: Attribute network requests to frames ()
This patch introduces `request.frame()` method that returns the frame that
initiated request.

Fixes 
2018-01-09 18:47:21 -08:00