docs(api.md): update note about page.goto() returned value (#2787)

Fixes: #2765
This commit is contained in:
Vse Mozhet Byt 2018-06-21 20:20:39 +03:00 committed by Andrey Lushnikov
parent a460114945
commit 3b20839ab5

View File

@ -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).