From 75e3fb035b6c8dea5e54c2e193f69b705902930e Mon Sep 17 00:00:00 2001 From: Vse Mozhe Buty Date: Mon, 28 Sep 2020 19:26:08 +0300 Subject: [PATCH] docs(api): fix some outdated links (#6450) --- docs/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index 9bf339e2..836e2bda 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1648,7 +1648,7 @@ Navigate to the next page in history. - the remote server does not respond or is unreachable. - the main resource failed to load. -`page.goto` will not throw an error when any valid HTTP status code is returned by the remote server, including 404 "Not Found" and 500 "Internal Server Error". The status code for such responses can be retrieved by calling [response.status()](#responsestatus). +`page.goto` will not throw an error when any valid HTTP status code is returned by the remote server, including 404 "Not Found" and 500 "Internal Server Error". The status code for such responses can be retrieved by calling [response.status()](#httpresponsestatus). > **NOTE** `page.goto` either throws an error or returns a main resource response. The only exceptions are navigation to `about:blank` or navigation to the same URL with a different hash, which would succeed and return `null`. @@ -2993,7 +2993,7 @@ If there's no element matching `selector`, the method throws an error. - the remote server does not respond or is unreachable. - the main resource failed to load. -`frame.goto` will not throw an error when any valid HTTP status code is returned by the remote server, including 404 "Not Found" and 500 "Internal Server Error". The status code for such responses can be retrieved by calling [response.status()](#responsestatus). +`frame.goto` will not throw an error when any valid HTTP status code is returned by the remote server, including 404 "Not Found" and 500 "Internal Server Error". The status code for such responses can be retrieved by calling [response.status()](#httpresponsestatus). > **NOTE** `frame.goto` either throws an error or returns a main resource response. The only exceptions are navigation to `about:blank` or navigation to the same URL with a different hash, which would succeed and return `null`.