docs: committed navigation (#10023)

This commit is contained in:
Yury Semikhatsky 2021-11-03 15:26:25 -07:00 committed by GitHub
parent 1a577ac344
commit 4c53824235
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,10 +12,11 @@ to wait for page navigations and loading to complete.
Playwright splits the process of showing a new document in a page into **navigation** and **loading**. Playwright splits the process of showing a new document in a page into **navigation** and **loading**.
**Navigations** can be initiated by changing the page URL or by interacting with the page (e.g., clicking a link). **Navigation starts** by changing the page URL or by interacting with the page (e.g., clicking a link).
Navigation ends when response headers have been parsed and session history is updated. The navigation intent may be The navigation intent may be canceled, for example, on hitting an unresolved DNS address or transformed into a file download.
canceled, for example, on hitting an unresolved DNS address or transformed into a file download. Only after the
navigation succeeds, page starts **loading** the document. **Navigation is committed** when the response headers have been parsed and session history is updated. Only after the
navigation succeeds (is committed), the page starts **loading** the document.
**Loading** covers getting the remaining response body over the network, parsing, executing the scripts and firing load **Loading** covers getting the remaining response body over the network, parsing, executing the scripts and firing load
events: events: