|
1 | 1 | <table>
|
2 | 2 | <thead>
|
3 | 3 | <tr>
|
4 |
| - <td>**Опция**</td> |
5 |
| - <td>**Тип**</td> |
6 |
| - <td>**Описание**</td> |
| 4 | + <td>**Option**</td> |
| 5 | + <td>**Type**</td> |
| 6 | + <td>**Description**</td> |
7 | 7 | </tr>
|
8 | 8 | </thead>
|
9 | 9 | <tbody>
|
10 | 10 | <tr>
|
11 | 11 | <td>ignoreElements</td>
|
12 |
| - <td>Array или String</td> |
| 12 | + <td>Array or String</td> |
13 | 13 | <td>
|
14 |
| - Элементы (задаются как селекторы), которые будут проигнорированы при сравнении |
15 |
| - скриншотов. Игнор реализуется с помощью закраски перечисленных элементов черным |
16 |
| - цветом. В случае одного элемента параметр можно задавать как строку. |
| 14 | + Elements (specified as selectors) that will be ignored when comparing screenshots. |
| 15 | + Ignoring is implemented by painting the listed elements black. In the case of a |
| 16 | + single element, the parameter can be specified as a string. |
17 | 17 | </td>
|
18 | 18 | </tr>
|
19 | 19 | <tr>
|
20 | 20 | <td>tolerance</td>
|
21 | 21 | <td>Number</td>
|
22 |
| - <td>Чувствительность к разнице в цветам.</td> |
| 22 | + <td>Sensitivity to color differences.</td> |
23 | 23 | </tr>
|
24 | 24 | <tr>
|
25 | 25 | <td>antialiasingTolerance</td>
|
26 | 26 | <td>Number</td>
|
27 |
| - <td>Чувствительность в антиалиасинге.</td> |
| 27 | + <td>Sensitivity to antialiasing.</td> |
28 | 28 | </tr>
|
29 | 29 | <tr>
|
30 | 30 | <td>allowViewportOverflow</td>
|
31 | 31 | <td>Boolean</td>
|
32 | 32 | <td>
|
33 |
| - По умолчанию Testplane выдает ошибку, если элемент находится за пределами границ |
34 |
| - вьюпорта. Этот параметр отключает проверку на границы, позволяя снимать скриншоты |
35 |
| - элементов, не влезающих во вьюпорт. При этом на скриншоте будут видны только те |
36 |
| - части элемента, которые влезли во вьюпорт. Однако если _compositeImage_ равен |
37 |
| - _true_, то части элемента, которые оказались за _нижней_ границей вьюпорта, тоже |
38 |
| - будут видны на скриншоте. Аналогично если _captureElementFromTop_ равен _true_, то |
39 |
| - на скриншот попадут и те части элемента, которые оказались за пределами _верхней_ |
40 |
| - границы вьюпорта. |
| 33 | + By default, Testplane throws an error if an element is outside the viewport |
| 34 | + boundaries. This parameter disables boundary checking, allowing screenshots of |
| 35 | + elements that do not fit within the viewport. Only the parts of the element that fit |
| 36 | + within the viewport will be visible in the screenshot. However, if _compositeImage_ |
| 37 | + is set to _true_, parts of the element that are below the viewport will also be |
| 38 | + visible in the screenshot. Similarly, if _captureElementFromTop_ is set to _true_, |
| 39 | + parts of the element that are above the viewport will also be included in the |
| 40 | + screenshot. |
41 | 41 | </td>
|
42 | 42 | </tr>
|
43 | 43 | <tr>
|
44 | 44 | <td>captureElementFromTop</td>
|
45 | 45 | <td>Boolean</td>
|
46 | 46 | <td>
|
47 |
| - Снимать скриншот элемента с самого верха. Если элемент находится за пределами |
48 |
| - вьюпорта, то к нему будет выполнен подскролл. |
| 47 | + Capture a screenshot of the element from the very top. If the element is outside the |
| 48 | + viewport, it will be scrolled into view. |
49 | 49 | </td>
|
50 | 50 | </tr>
|
51 | 51 | <tr>
|
52 | 52 | <td>compositeImage</td>
|
53 | 53 | <td>Boolean</td>
|
54 | 54 | <td>
|
55 |
| - Если элемент не влазит во вьюпорт, то при включении этой опции поочередно будет |
56 |
| - сделано несколько скриншотов разных частей элемента, после чего скриншоты будут |
57 |
| - склеены в один, чтобы отобразить элемент полностью. |
| 55 | + If the element does not fit within the viewport, enabling this option will take |
| 56 | + multiple screenshots of different parts of the element sequentially, and then stitch |
| 57 | + them together into one image to display the entire element. |
58 | 58 | </td>
|
59 | 59 | </tr>
|
60 | 60 | <tr>
|
61 | 61 | <td>screenshotDelay</td>
|
62 | 62 | <td>Number</td>
|
63 | 63 | <td>
|
64 |
| - Задержка в миллисекундах перед снятием скриншота. Может пригодиться, когда на |
65 |
| - странице есть элементы, использующие анимацию, или скроллбар, который исчезает не |
66 |
| - сразу и попадает на результирующий скриншот. |
| 64 | + Delay in milliseconds before taking a screenshot. This can be useful when there are |
| 65 | + elements on the page that use animation, or a scrollbar that does not disappear |
| 66 | + immediately and ends up in the resulting screenshot. |
67 | 67 | </td>
|
68 | 68 | </tr>
|
69 | 69 | <tr>
|
70 | 70 | <td>selectorToScroll</td>
|
71 | 71 | <td>String</td>
|
72 | 72 | <td>
|
73 |
| - Селектор, который нужно скроллировать. Может пригодиться, когда надо сделать |
74 |
| - скриншот модального окна, которое не помещается на экране. Иначе без указания |
75 |
| - селектора скролл будет применяться к объекту _window_, и скроллироваться будет |
76 |
| - задний фон, оставляя попап-окно на месте. |
| 73 | + Selector to scroll. This can be useful when you need to take a screenshot of a modal |
| 74 | + window that does not fit on the screen. Otherwise, without specifying the selector, |
| 75 | + the scroll will be applied to the _window_ object, and the background will scroll, |
| 76 | + leaving the popup window in place. |
77 | 77 | </td>
|
78 | 78 | </tr>
|
79 | 79 | <tr>
|
80 | 80 | <td>disableAnimation</td>
|
81 | 81 | <td>Boolean</td>
|
82 | 82 | <td>
|
83 |
| - Отключение анимаций и переходов при снятии скриншота. По умолчанию `true` начиная с |
84 |
| - версии `8.0.0` |
| 83 | + Disable animations and transitions when taking a screenshot. Default is `true` |
| 84 | + starting from version `8.0.0`. |
85 | 85 | </td>
|
86 | 86 | </tr>
|
87 | 87 | <tr>
|
88 | 88 | <td>ignoreDiffPixelCount</td>
|
89 |
| - <td>`` `${number}%` `` или Number</td> |
| 89 | + <td>`` `${number}%` `` or Number</td> |
90 | 90 | <td>
|
91 |
| - Процент пикселей, которые нужно игнорировать при диффе. Удобно для игнорирования |
92 |
| - очень маленьких диффов. По умолчанию `0`. Доступен начиная с версии `8.2.0` |
| 91 | + Percentage of pixels to ignore in the diff. Useful for ignoring very small diffs. |
| 92 | + Default is `0`. Available starting from version `8.2.0`. |
93 | 93 | </td>
|
94 | 94 | </tr>
|
95 | 95 | </tbody>
|
|
0 commit comments