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: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,14 +90,15 @@ with sync_playwright() as playwright:
90
90
percy_screenshot(page, name="Screenshot 1")
91
91
```
92
92
# take a snapshot
93
+
```python
93
94
percy_screenshot(page, name='Screenshot 1')
94
95
```
95
96
96
97
-`page` (**required**) - A Playwright page instance
97
98
-`name` (**required**) - The screenshot name; must be unique to each screenshot
98
99
-`options` (**optional**) - There are various options supported by percy_screenshot to server further functionality.
99
-
- `sync` - Boolean value by default it falls back to `false`, Gives the processed result around screenshot [From CLI v1.28.9-beta.0+]
100
-
- `full_page` - Boolean value by default it falls back to `false`, Takes full page screenshot [From CLI v1.28.9-beta.0+]
100
+
-`sync` - Boolean value by default it falls back to `false`, Gives the processed result around screenshot [From CLI v1.28.8]
101
+
-`full_page` - Boolean value by default it falls back to `false`, Takes full page screenshot [From CLI v1.28.8]
101
102
-`freeze_animated_image` - Boolean value by default it falls back to `false`, you can pass `true` and percy will freeze image based animations.
102
103
-`freeze_image_by_selectors` -List of selectors. Images will be freezed which are passed using selectors. For this to work `freeze_animated_image` must be set to true.
103
104
-`freeze_image_by_xpaths` - List of xpaths. Images will be freezed which are passed using xpaths. For this to work `freeze_animated_image` must be set to true.
0 commit comments