|
1 | 1 | <div align="center"> |
2 | 2 | <a href="https://github.com/playwright-php"><img src="https://github.com/playwright-php/.github/raw/main/profile/playwright-php.png" alt="Playwright PHP" /></a> |
3 | 3 |
|
4 | | -  |
| 4 | +  |
5 | 5 |  |
6 | 6 |  |
7 | 7 |  |
|
10 | 10 |
|
11 | 11 | # Playwright PHP: Device Descriptors |
12 | 12 |
|
13 | | -[Microsoft Playwright](https://github.com/microsoft/playwright) ships an official catalogue |
14 | | -of [device descriptors](https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/deviceDescriptorsSource.json). |
15 | | - |
16 | | -This package mirrors that list for [PlaywrightPHP](https://playwright-php.dev) by exporting the JSON data to |
17 | | -`data/devices.php`, and exposes a `DeviceRegistry` |
18 | | -class to retrieve device descriptors by name. |
| 13 | +This package provides the official [device descriptors](https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/deviceDescriptorsSource.json) |
| 14 | +from [Microsoft Playwright](https://github.com/microsoft/playwright) for use |
| 15 | +with [Playwright PHP](https://playwright-php.dev). |
19 | 16 |
|
20 | 17 | ## Installation |
21 | 18 |
|
@@ -64,29 +61,20 @@ $browser->newContext([ |
64 | 61 | $browser->newContext($iphone->toArray()); |
65 | 62 | ``` |
66 | 63 |
|
67 | | -## Descriptors |
68 | | - |
69 | | -### Desktop devices |
70 | | - |
71 | | -| Device | Browser | Viewport | Scale | Mobile | Touch | |
72 | | -|-----------------------|----------|------------|-------|--------|-------| |
73 | | -| Desktop Chrome | Chromium | 1280 x 720 | 1 | No | No | |
74 | | -| Desktop Chrome HiDPI | Chromium | 1280 x 720 | 2 | No | No | |
75 | | -| Desktop Edge | Chromium | 1280 x 720 | 1 | No | No | |
76 | | -| Desktop Edge HiDPI | Chromium | 1280 x 720 | 2 | No | No | |
77 | | -| Desktop Firefox | Firefox | 1280 x 720 | 1 | No | No | |
78 | | -| Desktop Firefox HiDPI | Firefox | 1280 x 720 | 2 | No | No | |
79 | | -| Desktop Safari | Webkit | 1280 x 720 | 2 | No | No | |
80 | | - |
81 | | -### Mobile devices |
82 | | - |
83 | | -| Device | Browser | Viewport | Scale | Screen | Viewport | |
84 | | -|---------------------|----------|------------|-------|------------|----------| |
85 | | -| LG Optimus L70 | Chromium | 640 x 384 | 1.25 | 384 x 640 | Yes | |
86 | | -| iPhone 15 Pro Max | Webkit | 814 x 380 | 3 | 430 x 739 | Yes | |
87 | | -| Kindle Fire HDX | Webkit | 1280 x 800 | 2 | 800 x 1280 | Yes | |
88 | | -| Microsoft Lumia 550 | Chromium | 640 x 360 | 2 | 360 x 640 | Yes | |
89 | | -| Pixel 7 | Chromium | 863 x 360 | 2.63 | 412 x 839 | Yes | |
| 64 | +## Catalog |
| 65 | + |
| 66 | +| Device | Browser | Screen | Scale | Viewport | Landscape | Mobile | Touch | |
| 67 | +|-----------------------|----------|-------------|-------|------------|------------|--------|-------| |
| 68 | +| Desktop Chrome | Chromium | 1920 x 1080 | 1 | 1280 x 720 | | No | No | |
| 69 | +| Desktop Chrome HiDPI | Chromium | 1792 x 1120 | 2 | 1280 x 720 | | No | No | |
| 70 | +| Desktop Edge | Chromium | 1920 x 1080 | 1 | 1280 x 720 | | No | No | |
| 71 | +| Desktop Edge HiDPI | Chromium | 1792 x 1120 | 2 | 1280 x 720 | | No | No | |
| 72 | +| Desktop Firefox | Firefox | 1920 x 1080 | 1 | 1280 x 720 | | No | No | |
| 73 | +| Desktop Firefox HiDPI | Firefox | 1792 x 1120 | 2 | 1280 x 720 | | No | No | |
| 74 | +| Desktop Safari | Webkit | 1792 x 1120 | 2 | 1280 x 720 | | No | No | |
| 75 | +| Blackberry PlayBook | Webkit | n/a | 1 | 600 x 1024 | 1024 x 600 | Yes | Yes | |
| 76 | +| BlackBerry Z30 | Webkit | n/a | 2 | 360 x 640 | 640 x 360 | Yes | Yes | |
| 77 | +| Galaxy A55 | Chromium | n/a | 2.25 | 480 x 1040 | 1040 x 480 | Yes | Yes | |
90 | 78 |
|
91 | 79 | Explore the full list of devices in [`docs/DEVICES.md`](docs/DEVICES.md). |
92 | 80 |
|
|
0 commit comments