mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-10 08:04:56 +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:
@@ -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 |
|
||||
|-----|---------|--------|
|
||||
|
||||
@@ -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