Skip to content

Commit eed2bac

Browse files
committed
docs: added overview links
1 parent 22e7513 commit eed2bac

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

docs/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
### Table of contents
44

55
1. [Getting Started](./intro.md)
6+
- [Introduction](./intro.md)
67
- [Installation](./installation.md)
78
1. [Core Concepts](./core-concepts.md)
9+
- [Overview](./core-concepts.md)
810
- [Browser](./core-concepts.md#browser)
911
- [Browser contexts](./core-concepts.md#browser-contexts)
1012
- [Pages and frames](./core-concepts.md#pages-and-frames)
@@ -22,13 +24,15 @@
2224
- [Upload files](./input.md#upload-files)
2325
- [Focus element](./input.md#focus-element)
2426
1. [Emulation](./emulation.md)
27+
- [Overview](./emulation.md)
2528
- [User agent](./emulation.md#user-agent)
2629
- [Viewport, color scheme](./emulation.md#viewport-color-scheme)
2730
- [Devices](./emulation.md#devices)
2831
- [Locale & Timezone](./emulation.md#locale--timezone)
2932
- [Permissions](./emulation.md#permissions)
3033
- [Geolocation](./emulation.md#geolocation)
3134
1. [Network](./network.md)
35+
- [Overview](./network.md)
3236
- [HTTP Authentication](./network.md#http-authentication)
3337
- [Handle file downloads](./network.md#handle-file-downloads)
3438
- [Network events](./network.md#network-events)
@@ -41,6 +45,7 @@
4145
- [Page events](./verification.md#page-events)
4246
- [Handling exceptions](./verification.md#handling-exceptions)
4347
1. [Navigation and Loading](./loading.md)
48+
- [Overview](./loading.md)
4449
- [Common scenarios](./loading.md#common-scenarios)
4550
- [Loading a popup](./loading.md#loading-a-popup)
4651
- [Client-side redirects](./loading.md#unusual-client-side-redirects)

docs/loading.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Playwright logically splits the process of showing a new document in the page into **navigation** and **loading**.
44

5-
### Navigation
5+
## Navigation
66

77
Page navigation can be either initiated by the Playwright call:
88

@@ -29,7 +29,7 @@ history.pushState({}, 'title', '#deep-link');
2929

3030
Navigation intent may result in being canceled, for example transformed into a download or hitting an unresolved DNS address. Only when the navigation succeeds, page starts **loading** the document.
3131

32-
### Loading
32+
## Loading
3333

3434
Page load takes time retrieving the response body over the network, parsing, executing the scripts and firing the events. Typical load scenario goes through the following load states:
3535
- [`page.url()`](api.md#pageurl) is set to the new url
@@ -40,7 +40,7 @@ Page load takes time retrieving the response body over the network, parsing, exe
4040
- page executes dynamically loaded scripts
4141
- `networkidle` is fired - no new network requests made for at least `500` ms
4242

43-
### Common scenarios
43+
## Common scenarios
4444

4545
By default, Playwright handles navigations seamlessly so that you did not need to think about them. Consider the following scenario, where everything is handled by Playwright behind the scenes:
4646

@@ -62,7 +62,7 @@ await page.click('text=Login');
6262

6363
Explicit loading handling may be required for more complicated scenarios though.
6464

65-
### Loading a popup
65+
## Loading a popup
6666

6767
When popup is opened, explicitly calling [`page.waitForLoadState()`](api.md#pagewaitforloadstatestate-options) ensures that popup is loaded to the desired state.
6868
```js

0 commit comments

Comments
 (0)