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
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,7 +172,7 @@ class Program
172
172
- `right` (int): Right coordinate of the consider region.
173
173
- `regions` parameter that allows users to apply snapshot options to specific areas of the page. This parameter is an array where each object defines a custom region with configurations.
174
174
- Parameters:
175
-
- `elementSelector` (optional)
175
+
- `elementSelector` (optional, only one of the following must be provided, if this is not provided then full page will be considered as region)
176
176
- `boundingBox` (object): Defines the coordinates and size of the region.
177
177
- `x` (number): X-coordinate of the region.
178
178
- `y` (number): Y-coordinate of the region.
@@ -220,7 +220,26 @@ var region = new Percy.Region
220
220
}
221
221
};
222
222
223
-
Percy.Snapshot(page, "Homepage", regions: new List<Region> { region });
0 commit comments