Skip to content

Commit 64bc132

Browse files
authored
Merge pull request #30 from gemini-testing/sp.fixMoveToCommand
fix: wrong description of options for the moveTo command
2 parents 0fe7751 + 066f1ec commit 64bc132

File tree

2 files changed

+50
-16
lines changed
  • docs/commands/element
  • i18n/en/docusaurus-plugin-content-docs/current/commands/element

2 files changed

+50
-16
lines changed

docs/commands/element/moveTo.mdx

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,29 @@ await browser.$(selector).moveTo({ xOffset, yOffset });
1717
## Параметры команды {#parameters}
1818

1919
<table>
20-
<thead>
21-
<tr><td>**Имя**</td><td>**Тип**</td><td>**Описание**</td></tr>
22-
</thead>
23-
<tbody>
24-
<tr><td>xOffset</td><td>Number</td><td>Смещение по оси X. Задается относительно верхнего левого угла элемента. Если не указано, мышь переместится в середину элемента.</td></tr>
25-
<tr><td>yOffset</td><td>Number</td><td>Смещение по оси Y. Задается относительно верхнего левого угла элемента. Если не указано, мышь переместится в середину элемента.</td></tr>
26-
27-
</tbody>
20+
<thead>
21+
<tr>
22+
<td>**Имя**</td>
23+
<td>**Тип**</td>
24+
<td>**Описание**</td>
25+
</tr>
26+
</thead>
27+
<tbody>
28+
<tr>
29+
<td>xOffset</td>
30+
<td>Number</td>
31+
<td>
32+
Смещение по оси X. Задается относительно центра элемента. Если не указано, мышь
33+
переместится в середину элемента.
34+
</td>
35+
</tr>
36+
<tr>
37+
<td>yOffset</td>
38+
<td>Number</td>
39+
<td>
40+
Смещение по оси Y. Задается относительно центра элемента. Если не указано, мышь
41+
переместится в середину элемента.
42+
</td>
43+
</tr>
44+
</tbody>
2845
</table>

i18n/en/docusaurus-plugin-content-docs/current/commands/element/moveTo.mdx

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,31 @@ await browser.$(selector).moveTo({ xOffset, yOffset });
1717
## Command Parameters {#parameters}
1818

1919
<table>
20-
<thead>
21-
<tr><td>**Name**</td><td>**Type**</td><td>**Description**</td></tr>
22-
</thead>
23-
<tbody>
24-
<tr><td>xOffset</td><td>Number</td><td>The X-axis offset relative to the top-left corner of the element. If not specified, the mouse will move to the middle of the element.</td></tr>
25-
<tr><td>yOffset</td><td>Number</td><td>The Y-axis offset relative to the top-left corner of the element. If not specified, the mouse will move to the middle of the element.</td></tr>
26-
27-
</tbody>
20+
<thead>
21+
<tr>
22+
<td>**Name**</td>
23+
<td>**Type**</td>
24+
<td>**Description**</td>
25+
</tr>
26+
</thead>
27+
<tbody>
28+
<tr>
29+
<td>xOffset</td>
30+
<td>Number</td>
31+
<td>
32+
The X-axis offset relative to the middle of the element. If not specified, the mouse
33+
will move to the middle of the element.
34+
</td>
35+
</tr>
36+
<tr>
37+
<td>yOffset</td>
38+
<td>Number</td>
39+
<td>
40+
The Y-axis offset relative to the middle of the element. If not specified, the mouse
41+
will move to the middle of the element.
42+
</td>
43+
</tr>
44+
</tbody>
2845
</table>
2946

3047
## References

0 commit comments

Comments
 (0)