You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/emulation.md
+64-31Lines changed: 64 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,20 @@
1
1
# Device and environment emulation
2
-
Playwright allows overriding various parameters that depend on the device where the browser is running (such as viewport size, touch support, dpr etc.) as well as custom system settings such as locale and timezone. Most of these parameters are configured during context construction but some of them (e.g. viewport size) can be changed for individual pages.
2
+
3
+
Playwright allows overriding various parameters of the device where the browser is running:
4
+
- viewport size, device scale factor, touch support
5
+
- locale, timezone
6
+
- color scheme
7
+
- geolocation
8
+
- etc
9
+
10
+
Most of these parameters are configured during the browser context construction, but some of them such as viewport size can be changed for individual pages.
11
+
12
+
<br/>
3
13
4
14
## Emulating popular devices
5
-
Playwright comes with a registry of device parameters for some popular mobile devices. It can be used to simulate browser behavior on a mobile device like this:
15
+
16
+
Playwright comes with a registry of device parameters for selected mobile devices. It can be used to simulate browser behavior on a mobile device:
0 commit comments