From 3b20839ab5220768a7d38e0dec948c201b6a6709 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Thu, 21 Jun 2018 20:20:39 +0300 Subject: [PATCH] docs(api.md): update note about page.goto() returned value (#2787) Fixes: #2765 --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index c93eb0c9a36..9c9eb94a245 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1171,7 +1171,7 @@ The `page.goto` will throw an error if: - the `timeout` is exceeded during navigation. - the main resource failed to load. -> **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** `page.goto` either throw or return a main resource response. The only exceptions is navigation to `about:blank` or navigation to the same URL with a different hash, 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).