From 715296443cc6c1a614a75fd08bcba90d35f47a28 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Thu, 21 Sep 2017 02:51:25 +0300 Subject: [PATCH] Document headless mode restriction for PDF (#836) Fixes: https://github.com/GoogleChrome/puppeteer/issues/830 --- docs/api.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api.md b/docs/api.md index 1672bb925dd..a8e1d7a678f 100644 --- a/docs/api.md +++ b/docs/api.md @@ -608,6 +608,7 @@ The `page.goto` will throw an error if: > **NOTE** `page.goto` either throw or return a main resource response. The only exception is navigation to `about:blank`, which would succeed and return `null`. +> **NOTE** Headless mode doesn't support navigating to a PDF document. See the [upstream issue](https://bugs.chromium.org/p/chromium/issues/detail?id=761295). #### page.hover(selector) - `selector` <[string]> A [selector] to search for element to hover. If there are multiple elements satisfying the selector, the first will be hovered.