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:
Nick Shirokov
2026-04-04 13:13:10 +03:00
parent ea8b28280d
commit c8a7ba4683
2 changed files with 10 additions and 2 deletions
+6 -1
View File
@@ -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.
### 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 |
|-----|---------|--------|
+4 -1
View File
@@ -333,7 +333,10 @@ await clickElement('150 000', { dblclick: true }); // найдёт ячейку
## Клавиатурные сочетания
Через `getPage().keyboard.press()`:
```js
const page = await getPage();
await page.keyboard.press('F8'); // пример: создать новый элемент в сфокусированном ссылочном поле
```
| Клавиша | Контекст | Действие |
|---------|----------|----------|