mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-08-28 14:09:41 +03:00
docs(web-test): add getPage() usage example for keyboard shortcuts
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
ea8b28280d
commit
c8a7ba4683
@@ -476,7 +476,12 @@ await deleteTableRow(0, { table: 'Исходящие' });
|
|||||||
|
|
||||||
Table matching accepts both technical name (`tables[].name`) and visual label (`tables[].label`). Label is the group title shown on screen — useful when working from screenshots. Name match takes priority over label match.
|
Table matching accepts both technical name (`tables[].name`) and visual label (`tables[].label`). Label is the group title shown on screen — useful when working from screenshots. Name match takes priority over label match.
|
||||||
|
|
||||||
### Keyboard shortcuts (via `page.keyboard.press`)
|
### Keyboard shortcuts
|
||||||
|
|
||||||
|
```js
|
||||||
|
const page = await getPage();
|
||||||
|
await page.keyboard.press('F8'); // example: create new item in focused reference field
|
||||||
|
```
|
||||||
|
|
||||||
| Key | Context | Action |
|
| Key | Context | Action |
|
||||||
|-----|---------|--------|
|
|-----|---------|--------|
|
||||||
|
|||||||
@@ -333,7 +333,10 @@ await clickElement('150 000', { dblclick: true }); // найдёт ячейку
|
|||||||
|
|
||||||
## Клавиатурные сочетания
|
## Клавиатурные сочетания
|
||||||
|
|
||||||
Через `getPage().keyboard.press()`:
|
```js
|
||||||
|
const page = await getPage();
|
||||||
|
await page.keyboard.press('F8'); // пример: создать новый элемент в сфокусированном ссылочном поле
|
||||||
|
```
|
||||||
|
|
||||||
| Клавиша | Контекст | Действие |
|
| Клавиша | Контекст | Действие |
|
||||||
|---------|----------|----------|
|
|---------|----------|----------|
|
||||||
|
|||||||
Reference in New Issue
Block a user