Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wrong description of options for the moveTo command #30

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 25 additions & 8 deletions docs/commands/element/moveTo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,29 @@ await browser.$(selector).moveTo({ xOffset, yOffset });
## Параметры команды {#parameters}

<table>
<thead>
<tr><td>**Имя**</td><td>**Тип**</td><td>**Описание**</td></tr>
</thead>
<tbody>
<tr><td>xOffset</td><td>Number</td><td>Смещение по оси X. Задается относительно верхнего левого угла элемента. Если не указано, мышь переместится в середину элемента.</td></tr>
<tr><td>yOffset</td><td>Number</td><td>Смещение по оси Y. Задается относительно верхнего левого угла элемента. Если не указано, мышь переместится в середину элемента.</td></tr>

</tbody>
<thead>
<tr>
<td>**Имя**</td>
<td>**Тип**</td>
<td>**Описание**</td>
</tr>
</thead>
<tbody>
<tr>
<td>xOffset</td>
<td>Number</td>
<td>
Смещение по оси X. Задается относительно центра элемента. Если не указано, мышь
переместится в середину элемента.
</td>
</tr>
<tr>
<td>yOffset</td>
<td>Number</td>
<td>
Смещение по оси Y. Задается относительно центра элемента. Если не указано, мышь
переместится в середину элемента.
</td>
</tr>
</tbody>
</table>
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,31 @@ await browser.$(selector).moveTo({ xOffset, yOffset });
## Command Parameters {#parameters}

<table>
<thead>
<tr><td>**Name**</td><td>**Type**</td><td>**Description**</td></tr>
</thead>
<tbody>
<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>
<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>

</tbody>
<thead>
<tr>
<td>**Name**</td>
<td>**Type**</td>
<td>**Description**</td>
</tr>
</thead>
<tbody>
<tr>
<td>xOffset</td>
<td>Number</td>
<td>
The X-axis offset relative to the middle of the element. If not specified, the mouse
will move to the middle of the element.
</td>
</tr>
<tr>
<td>yOffset</td>
<td>Number</td>
<td>
The Y-axis offset relative to the middle of the element. If not specified, the mouse
will move to the middle of the element.
</td>
</tr>
</tbody>
</table>

## References
Expand Down
Loading