Web Application Testing
anthropics/skills
Tests local web applications with Python Playwright scripts, checking frontend behavior, capturing screenshots and reading browser console logs.
Тестирование 1С через веб-клиент — автоматизация действий в браузере.
$ npx skills add Nikolay-Shirokov/cc-1c-skills --skill web-test -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Nikolay-Shirokov/cc-1c-skills web-test --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Nikolay-Shirokov/cc-1c-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/web-test .claude/skills/web-test && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "web-test" agent skill from https://github.com/Nikolay-Shirokov/cc-1c-skills/tree/main/.claude/skills/web-test into .claude/skills/web-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "web-test", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Nikolay-Shirokov/cc-1c-skills/tree/main/.claude/skills/web-testType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Nikolay-Shirokov/cc-1c-skills --skill web-test -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Nikolay-Shirokov/cc-1c-skills web-test --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nikolay-Shirokov/cc-1c-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/web-test .agents/skills/web-test && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "web-test" agent skill from https://github.com/Nikolay-Shirokov/cc-1c-skills/tree/main/.claude/skills/web-test into .agents/skills/web-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "web-test", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Nikolay-Shirokov/cc-1c-skills --skill web-test -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Nikolay-Shirokov/cc-1c-skills web-test --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nikolay-Shirokov/cc-1c-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/web-test .cursor/skills/web-test && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "web-test" agent skill from https://github.com/Nikolay-Shirokov/cc-1c-skills/tree/main/.claude/skills/web-test into .cursor/skills/web-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "web-test", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Nikolay-Shirokov/cc-1c-skills.git --path .claude/skills/web-test--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Nikolay-Shirokov/cc-1c-skills --skill web-test -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Nikolay-Shirokov/cc-1c-skills web-test --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nikolay-Shirokov/cc-1c-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/web-test .gemini/skills/web-test && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "web-test" agent skill from https://github.com/Nikolay-Shirokov/cc-1c-skills/tree/main/.claude/skills/web-test into .gemini/skills/web-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "web-test", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Nikolay-Shirokov/cc-1c-skills web-testInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Nikolay-Shirokov/cc-1c-skills --skill web-test -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Nikolay-Shirokov/cc-1c-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/web-test .github/skills/web-test && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "web-test" agent skill from https://github.com/Nikolay-Shirokov/cc-1c-skills/tree/main/.claude/skills/web-test into .github/skills/web-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "web-test", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Nikolay-Shirokov/cc-1c-skills --skill web-test -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Nikolay-Shirokov/cc-1c-skills web-test --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nikolay-Shirokov/cc-1c-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/web-test .opencode/skills/web-test && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "web-test" agent skill from https://github.com/Nikolay-Shirokov/cc-1c-skills/tree/main/.claude/skills/web-test into .opencode/skills/web-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "web-test", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
web-testТестирование 1С через веб-клиент — автоматизация действий в браузере.
Web Test is an agent skill from Nikolay-Shirokov/cc-1c-skills. Тестирование 1С через веб-клиент — автоматизация действий в браузере. Используй когда пользователь просит проверить, протестировать, автоматизировать действия в 1С через браузер
Its SKILL.md is about 8.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 80 other files, including scripts (for example `recording.md` and `regress.md`).
It sits in Testing & QA. It works with Playwright. The repository describes itself as: Набор навыков для AI(ИИ)-агентов (Claude Code, Cursor, Codex и др.), помогающий охватить полный цикл разработки на платформе 1С:Предприятие 8.3. Даёт модели абстракции над… The licence is MIT.
Read from SKILL.md and the folder at commit 1fa205b. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
BashReadWriteGlobGrepFrom allowed-tools in the SKILL.md frontmatter.
Ships 13 files in scripts/ (JavaScript, from the files we listed), which the agent can run.
Shell commands in SKILL.md call:
nodenpmnpxFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npm and npx, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Web Test loads about 8.2k tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 2,815 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Bash, Read, Write, Glob, GrepAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from Nikolay-Shirokov/cc-1c-skills at commit 1fa205b, republished under its MIT licence (© Nikolay-Shirokov). 2,815 words, ~8,177 tokens.
.claude/skills/web-test/SKILL.md (or your agent's skills folder). This skill also uses 76 other files; get the full folder from GitHub.Automates user interactions with 1C:Enterprise web client via Playwright — navigating sections, filling forms, reading tables and reports, filtering lists.
RUN="${CLAUDE_SKILL_DIR}/scripts/run.mjs"
# One-shot: opens browser → runs script → closes browser → exits
node $RUN run http://localhost:8081/bpdemo test-scenario.js
# Or pipe inline:
cat <<'SCRIPT' | node $RUN run http://localhost:8081/bpdemo -
await navigateSection('Продажи');
await openCommand('Заказы клиентов');
await clickElement('Создать');
await fillFields({ 'Клиент': 'Альфа' });
await clickElement('Провести и закрыть');
SCRIPTcd "${CLAUDE_SKILL_DIR}/scripts" && npm install && npx playwright install chromiumRequires Node.js 18+. npm install fetches Playwright; npx playwright install chromium downloads the browser.
Read .v8-project.json from project root. Each database has id and optional webUrl.
Construct URL as http://localhost:8081/<id> or use webUrl if set.
Use /web-publish first if the database is not published.
node $RUN run <url> script.js # exits when done, no session# 1. Start session in the background — `start` stays running as the server, so don't wait on
# its stdout. Poll `status` instead: it exits 0 only once the session is loaded and live.
node $RUN start <url> # run_in_background=true
until node $RUN status >/dev/null 2>&1; do sleep 2; done # exit 0 = ready
# 2. Execute scripts against running session
cat <<'SCRIPT' | node $RUN exec -
const form = await getFormState();
console.log(JSON.stringify(form, null, 2));
SCRIPT
# 2b. Execute without video recording (for debugging/testing)
cat script.js | node $RUN exec - --no-record
# 2c. Override exec HTTP timeout (default 30 min). Use for long scripts
# such as multi-block recordings + addNarration.
cat script.js | node $RUN exec - --timeout-min=120
cat script.js | node $RUN exec - --timeout=7200000
WEB_TEST_EXEC_TIMEOUT_MS=7200000 node $RUN exec script.js
# 3. Screenshot
node $RUN shot result.png
# 4. Stop (logout + close)
node $RUN stopstart runs an HTTP server in background. Use exec/shot/stop from other shells.
All browser.mjs exports are globals — no import needed.
console.log() output is captured in the JSON response.
writeFileSync / readFileSync also available.
navigateSection(name) → { navigated, sections, commands }Go to a top-level section (fuzzy match). Returns list of commands in that section.
await navigateSection('Продажи');
// { navigated: 'Продажи', sections: [...], commands: ['Заказы клиентов', ...] }openCommand(name) → form stateOpen a command from the function panel (fuzzy). Returns form state of the opened form.
const form = await openCommand('Заказы клиентов');navigateLink(url) → form stateOpen any 1C object by metadata path (Shift+F11 dialog). Bypasses section/command navigation.
await navigateLink('Документ.ЗаказКлиента');
await navigateLink('РегистрНакопления.ЗаказыКлиентов');
await navigateLink('Справочник.Контрагенты');openFile(path) → form stateOpen an external data processor or report (EPF/ERF) via File → Open. Handles the security confirmation dialog automatically.
const form = await openFile('C:\\WS\\build\\МояОбработка.epf');
const form = await openFile('build/МояОбработка.epf'); // relative paths work tooswitchTab(name) → form stateSwitch to an already-open tab/window (fuzzy match).
getFormState() → { form, formCount, openForms, title, fields, buttons, tabs, navigation?, table, tables, filters, reportSettings? }Returns current form structure. This is the primary way to understand what's on screen.
form — active form number, or null when no form is open (desktop).
formCount — number of open forms. Use this to know how many windows are stacked. 0 means desktop.
openForms — array of all open form numbers (e.g. [0, 1]). Works even when the open-windows tab bar is hidden in 1C settings.
modal — true when the active form is a modal dialog blocking the UI. Only present when modal is active.
openTabs — array of { name, active? } from the open-windows tab bar. Only present when the tab bar is enabled in 1C settings. Do NOT rely on this — use formCount/openForms instead.
title — caption of the active form ("Контрагенты", "Заказ поставщику ТД00-000052 от 05.07.2022"). Read from the form's own header, which does not depend on the open-windows tab bar; when the form shows no header, falls back to the active tab's caption, and is null when neither is available.
fields — each field has: name, value, label?, actions? (select, clear, open), required? (true for unfilled mandatory fields), disabled? (control is unavailable). buttons[] carry disabled? too.
navigation — form navigation panel links (for objects with subordinate catalogs): [{ name, active? }]. Clickable via clickElement(). Only present when the form has a navigation panel (e.g. "Основное", "Объекты метаданных", "Подсистемы").
groups — collapsible and pop-up form groups: [{ name, title, collapsed, behavior? }]. collapsed: true means the group's content is hidden — part of the form is not shown until you expand it (common on settings pages like "Администрирование → Интернет-поддержка и сервисы"). behavior: 'popup' marks a pop-up group (content shows in a floating panel); absent for ordinary collapsible groups. Expand/collapse (or open/close a pop-up) by the group title with clickElement, same vocabulary as tree nodes: { expand: true } reveals (idempotent), { expand: false } hides, { toggle: true } flips. After expanding, the group's content becomes readable in the next getFormState() (its fields/hyperlinks/texts appear). Plain (non-collapsible) groups are not listed.
A group's title is not a stable key: the same caption repeats across blocks of a form, and a
group may swap it when expanded ("Показать детализацию" ↔ "Скрыть детализацию"), after which a
click by the old caption fails with "not found". The click result therefore reports group (the
group's technical name, which never changes and is accepted by clickElement) and title (its
caption right now) — use group when you plan to click the same group again.
const form = await getFormState();
// form.groups = [{ name: "ГруппаНовости", title: "Новости", collapsed: true }, ...]
const r = await clickElement('Новости', { expand: true }); // reveal the group's content
// r.clicked = { kind: 'formGroup', name: 'Новости', group: 'ГруппаНовости', title: 'Новости', toggled: true }
await clickElement(r.clicked.group, { expand: false }); // stable key — safe to reusetables — array of all visible grids: [{ name, columns, rowCount, label? }]. label is the visual group title shown on screen (e.g. "Входящие"), absent when grid has no visible title. Use readTable() for actual data.
table — backward-compatible alias for the first grid: { present, columns, rowCount }.
reportSettings — for DCS reports: human-readable filter settings instead of raw technical names:
const form = await getFormState();
// form.reportSettings = [
// { name: "Склад", enabled: true, value: "Склад бытовой техники", actions: ["select"] },
// { name: "Номенклатура", enabled: false, value: "" }
// ]errorModal — if present, 1C showed an error dialog. Read the message and decide how to proceed.
confirmation — if present, a Yes/No dialog is shown. Call clickElement('Да') or clickElement('Нет').
errors.stateText — array of SpreadsheetDocument state messages (e.g. "Не установлено значение параметра \"X\"", "Отчет не сформирован...", "Изменились настройки..."). Present when the report area shows an info bar instead of data. The same info bar carries "Поиск..." while a list is still searching — actions do not return while it is up, so a filtered list never hands you the previous rows.
readTable({ maxRows?, offset?, table? }) → { columns, rows, total, shown, offset, hasMore }Read actual grid data with pagination. Each row is { columnName: value }.
| Option | Default | Description |
|---|---|---|
maxRows | 20 | Max rows to return per call |
offset | 0 | Skip first N rows |
table | — | Grid name from tables[] (for multi-grid forms) |
Picture columns. Cells that render an icon (status/stage marks, the "ЭДО" mark, the attached-files paperclip) read as 'pic:<N>' (N = icon frame/state) when shown, '' when absent — so presence is truthy and icons differ by index. Icon-only columns (no header text) still appear, named by their tooltip or '(picture)'. These values are read-only — filter/select rows by a text column, not by 'pic:N'.
if (t.rows[0]['Присоединенные файлы']) { /* has an attached file */ }
t.rows[0]['ЭДО'] === 'pic:1'; // connected to 1С-ЭДО ('pic:0' = not)Grouped headers. Columns merged under a group caption are reported with that caption: 'Цена / План', 'Цена / Факт' — the caption alone is not a data column. Such names also work in clickElement({row, column}) and fillTableRow; a short name ('Факт') resolves too, picking the leftmost match.
Special row fields:
_kind: 'group' — hierarchical group row_kind: 'parent' — parent row in hierarchy_tree: 'expanded'|'collapsed' — tree node state_level: N — nesting depth in tree view_selected: true — row is selected (highlighted). Use with clickElement({ modifier: 'ctrl'|'shift' }) to verify multi-selectionhierarchical: true — list has groups (on result object)viewMode: 'tree' — tree view active (on result object)Row state — in object lists, decoded from the row's state icon (no need to add a column to the list):
_deleted: true|false — marked for deletion (catalogs, documents, tasks, business processes, charts of accounts/calculation types)_posted: true|false — documents_predefined: true|false — catalogs, charts of accounts/calculation types_completed: true|false — tasks_started, _finished — business processes_rowPic: '<icon>:<N>' — raw icon id, for diagnosticsconst t = await readTable();
const doc = t.rows.find(r => r['Номер'] === 'ТД00-000005');
if (doc._deleted === true) { /* marked for deletion */ }A missing state field means "unknown", never false — the property may not apply (documents have no _predefined), or the icon may be unrecognised. So if (!row._deleted) is unsafe: it reads "unknown" as "not deleted". Compare explicitly (=== true / === false) and treat undefined as a third outcome. Rows outside object lists (form tabular sections, value lists) have no state fields at all. If _rowPic is present but the booleans aren't, report its value — that icon needs decoding support.
total is misleading for long lists. 1С virtualizes both dynamic lists and form tabular sections — the DOM holds only a window of visible rows. total / shown count what's loaded right now, not the size of the underlying collection. Use hasMore to know if there's more data outside the window:
const t = await readTable();
// t.hasMore = { above: false, below: true } ← form tabular section, scrollbar visible
// t.hasMore = { below: true } ← dynamic list (catalog/journal/register)
// t.hasMore = { below: false } ← everything visible / end of list reachedhasMore.below — always present. true ⇒ scrolling down (PageDown / clickElement with scroll:true) will reveal more rows.hasMore.above — usually present too. Detected via the dynamic-list page-turn buttons (#vertButtonScroll) or the tabular-section scrollbar. Absent only for rare grids that have neither widget — treat absence as unknown.const t = await readTable({ maxRows: 50 });
console.log('Columns:', t.columns);
console.log('Loaded:', t.shown, 'rows; more below:', t.hasMore.below);
// Pagination:
const page2 = await readTable({ maxRows: 50, offset: 50 });readSpreadsheet() → { title?, headers?, data?, totals?, rows?, total }Read report output (SpreadsheetDocument) after clicking "Сформировать".
Returns structured data when header row is detected:
await clickElement('Сформировать');
await wait(5);
const report = await readSpreadsheet();
// { title: "Остатки товаров", headers: ["Номенклатура", "Склад", "Количество"],
// data: [{ "Номенклатура": "Бумага", "Склад": "Основной", "Количество": "150" }, ...],
// totals: { "Количество": "1250" }, total: 42 }Falls back to { rows: string[][], total } when headers can't be detected.
getSections() → { activeSection, sections, commands }Read section panel and commands without navigating.
getCommands() → string[]Commands of the current section.
getPageState() → { activeSection, activeTab, sections, tabs }Sections + all open tabs.
Return shape convention. All action functions return a flat form state (same shape as getFormState()) with action-specific extras: clicked, focused, selected, filled, notFilled, closed, opened, navigated, deleted, filtered, unfiltered. Errors always sit at the top level under .errors (when present) — the exec-wrapper automatically throws on .errors.modal / .errors.balloon.
clickElement(text, { dblclick?, table?, expand?, modifier?, scroll? }) → form stateClick button, hyperlink, tab, navigation panel link, or grid row (fuzzy match).
Disabled controls throw. clickElement, fillFields, and selectValue throw "X" is disabled on an unavailable control instead of reporting a fake success — check getFormState().buttons[].disabled / fields[].disabled first.
table — scope button search to a specific grid's command panel (by name from tables[]):
await clickElement('Добавить', { table: 'Исходящие' }); // clicks "Добавить" near "Исходящие" gridSingle click selects a row in a list. Double-click opens the item:
await clickElement('0000-000227', { dblclick: true }); // opens documentReturns submenu[] when a menu opens — click again with item name:
const r = await clickElement('Ещё');
// r.submenu = ['Расширенный поиск', 'Настройки', ...]
await clickElement('Расширенный поиск');Tree nodes: default click = select (highlight row). Use { expand: true } to expand/collapse:
await clickElement('ИСУ ФХД'); // select row
await clickElement('ИСУ ФХД', { expand: true }); // expand/collapseFocus a field (last resort, when no table given): if text matches no clickable control but matches a form field's name/label, clicks the input to focus it without changing its value. Returns focused: { field, id, ok } (ok: false if the field couldn't take focus). Use it to drive focus-dependent keys:
await clickElement('Контрагент'); // focus the reference field
await getPage().keyboard.press('F4'); // open its selection formMulti-select rows with modifier: 'ctrl' (add to selection) or modifier: 'shift' (select range):
await clickElement('Номенклатура 1'); // select first row
await clickElement('Номенклатура 2', { modifier: 'ctrl' }); // add to selection
await clickElement('Номенклатура 5', { modifier: 'shift' }); // select range 2..5
// Verify selection:
const t = await readTable();
t.rows.filter(r => r._selected); // rows with _selected: trueCell click by (row, column) — first argument as { row, column }. Routes: spreadsheet on form → spreadsheet drill-down; otherwise → grid cell. Pass table: 'GridName' to force a specific grid when both are present.
Spreadsheet report drill-down:
const report = await readSpreadsheet();
// report.data[0] = { 'К1': 'Материалы строительные', 'К6': '150 000', ... }
await clickElement({ row: 0, column: 'К6' }, { dblclick: true }); // by index
await clickElement({ row: { 'К1': 'Материалы' }, column: 'К6' }, { dblclick: true }); // by filter
await clickElement({ row: 'totals', column: 'К6' }, { dblclick: true }); // totals row
await clickElement('150 000', { dblclick: true }); // fallback: by textForm grid cell (catalog list, journal, table part). Off-viewport columns auto-scroll horizontally (works around frozen columns). Use scroll: true | number for filter-based rows outside the current DOM window:
await clickElement({ row: 0, column: 'Количество' }, { table: 'Товары', dblclick: true });
await clickElement({ row: { 'Номенклатура': 'Бумага' }, column: 'Цена' }, { table: 'Товары' });
await clickElement({ row: { 'Номер': '0000-000601' }, column: 'Сумма' },
{ table: 'Реализации', scroll: true }); // PageDown loop, max 50Gotchas:
row: <number> is the index in the current DOM window, not absolute — 1С virtualizes long lists. row: 0 is the topmost loaded row after any prior scroll. For arbitrary rows in a long list use row: { col: val } + scroll: true.scroll: true walks down only (PageDown). For going up first press Home via getPage().keyboard or narrow with filterList.fillFields({ name: value }) → form state with filledFill form fields by label (fuzzy match). Auto-detects field type.
| Value | Field type | Method |
|---|---|---|
'Конфетпром' | Reference | Clipboard paste + typeahead |
'5000' | Plain text | Clipboard paste |
'true' / 'да' | Checkbox | Toggle |
'Оплата поставщику' | Radio | Fuzzy label match |
'' / null | Any (except checkbox/radio) | Clear via Shift+F4 |
DCS report filters: use human-readable label names. Checkbox is auto-enabled:
await fillFields({
'Склад': 'Склад бытовой техники', // auto-enables "Склад" checkbox + fills value
'Номенклатура': 'Вентилятор' // same: enables checkbox + fills
});Returns form state with filled: [{ field, ok: true, value, method }] (method: clear|toggle|radio|paste|dropdown|form|typeahead). Throws on any per-field failure with a detailed message listing problematic fields and available options — if the call returned, all fields were filled, no per-item check needed.
selectValue(field, search, opts?) → form state with selectedSelect a value from reference field via dropdown or selection form. More reliable than fillFields for reference fields that need exact selection from a catalog. Pass empty search ('' or null) to clear the field (Shift+F4).
search — string for simple search, or { field: value } object for per-field advanced search:
await selectValue('Организация', 'Конфетпром');
// result.selected = { field: 'Организация', search: 'Конфетпром', method: 'dropdown'|'form' }
// Per-field search (disambiguate by multiple columns):
await selectValue('Документ', { 'Номер': '0000-000601', 'Дата': '29.12.2016' }, { type: 'Реализация (акт' });For composite-type fields (accepting multiple types), specify type to first select the type, then the value:
await selectValue('Документ', '0000-000601', { type: 'Реализация (акт' });
// Clears field → opens type dialog → picks type via Ctrl+F → picks value from selection form
// result.selected = { field: 'Документ', search: '0000-000601', type: 'Реализация (акт', method: 'form' }Also supports DCS labels — auto-enables the paired checkbox.
Multi-select — pass an array to select several values at once; the field is set to exactly
that set (replace). Returns selected: { field, values, notSelected? } — values are the ones
actually selected; any value the field doesn't offer goes to notSelected: [{ value, reason }]
(the call doesn't throw). Elements take the same forms as search (string, or { col: value }).
await selectValue('Наименование компании', ['Альфа ООО', 'Бета АО']);
// selected: { field: 'Наименование компании', values: ['Альфа ООО', 'Бета АО'] }fillTableRow(fields, opts) → form state with filled (+ optional notFilled)Fill table row cells via Tab navigation. Value is a plain string, { value, type } for composite-type cells, or ''/null to clear (Shift+F4).
Returns form state with filled: [{ field, ok, ...}]. Items are { field, ok: true, method, value } on success (method: direct|paste|dropdown|form|type-direct|skip|clear|toggle) or { field, ok: false, error, message } on per-field failure. Unmatched fields → notFilled: [...].
Unlike fillFields, fillTableRow does NOT throw on per-field failures — errors appear as ok: false items in filled[] so the caller can react selectively (e.g. retry one cell while the rest of the row stays filled). Check via r.filled.filter(f => !f.ok). Error codes: composite_type/type_required/type_dialog_failed (retry with {value, type}); column_not_found (check column name via readTable); no_selection_form/no_selection_after_type (retry or fall back to selectValue); not_found/no_match/ambiguous (refine search text); still_open (picked a group — pick a leaf row). Soft validation errors from 1C (balloon, modal) still throw via the exec-wrapper.
| Option | Description |
|---|---|
tab | Switch to tab before filling |
add | Add new row before filling |
row | Edit existing row: 0-based index, or a { col: value } filter (one or more columns) to locate the row by its cell values |
scroll | With a row filter — scan beyond the current DOM window (true = up to 50 PageDowns, number = limit) |
table | Grid name from tables[] (for multi-grid forms) |
// Add new row:
await fillTableRow(
{ 'Номенклатура': 'Бумага', 'Количество': '10', 'Цена': '100' },
{ tab: 'Товары', add: true }
);
// Edit existing row by index:
await fillTableRow(
{ 'Количество': '20' },
{ tab: 'Товары', row: 0 }
);
// Edit existing row located by cell values (одна или несколько колонок):
await fillTableRow({ 'Цена': '120' }, { table: 'Товары', row: { 'Номенклатура': 'Бумага' } });
await fillTableRow({ 'Сумма': '500' }, { row: { 'Номер': '0000-000601', 'Дата': '29.12.2016' }, scroll: true });
// Multi-grid form — add row to specific table:
await fillTableRow(
{ 'Объект': 'БДДС' },
{ table: 'Исходящие', add: true }
);
// Composite-type cell (e.g. SubConto accepting multiple types):
await fillTableRow(
{ 'СубконтоКт1': { value: 'Голованов', type: 'Физическое лицо' } },
{ tab: 'Проводки' }
);deleteTableRow(row, { tab?, table? }) → form stateDelete row by 0-based index. table targets a specific grid on multi-grid forms.
closeForm({ save? }) → form state with closedClose the current form via Escape. Returns form state with closed: true/false indicating whether the form actually closed.
| Argument | Behavior |
|---|---|
{ save: false } | Auto-clicks "Нет" on confirmation |
{ save: true } | Auto-clicks "Да" on confirmation |
{} (omitted) | Returns confirmation field if dialog appears |
closed — true if the form was closed (form number changed), false if it stayed open (e.g. Escape was ignored). Always check this to confirm the form actually closed. After closing, check formCount to see how many forms remain.
Preferred over clickElement('×') — close buttons on tabs are ambiguous.
filterList(text, opts?) → form stateFilter list. Simple mode searches all columns, advanced mode targets a specific field.
await filterList('КП00-000018'); // simple — all columns
await filterList('Мишка', { field: 'Наименование' }); // advanced — specific column
await filterList('Мишка', { field: 'Наименование', exact: true }); // exact matchWorks on hierarchical catalogs too (flattens the view).
unfilterList({ field? }) → form stateClear filters. Without arguments clears all, with { field } clears specific badge.
screenshot() → PNG Bufferwait(seconds) → form stategetPage() → Playwright Page (raw, for advanced scripting)startRecording(path, opts?) / stopRecording() → MP4 video recording ({ force: true } to restart if already recording)showCaption(text, opts?) / hideCaption() → text overlay on pageshowTitleSlide(text, opts?) / hideTitleSlide() → full-screen title card (intro/outro)isRecording() → booleansetHighlight(on) / isHighlightMode() → auto-highlight mode for videohighlight(text) / unhighlight() → manual element highlighting (error lists available elements)addNarration(videoPath, opts?) → narrated MP4 with TTS voiceovergetCaptions() → caption timestamps from last recordingSee recording.md for setup (ffmpeg), highlight mode, TTS narration, API details, and examples.
If .v8-project.json has ffmpegPath, pass it to startRecording({ ffmpegPath }).
If .v8-project.json has tts config, pass it to addNarration() (provider, voice, apiKey).
await navigateSection('Продажи');
await openCommand('Заказы клиентов');
await clickElement('Создать');
await fillFields({ 'Организация': 'Конфетпром', 'Контрагент': 'Альфа' });
await fillTableRow({ 'Номенклатура': 'Бумага', 'Количество': '10' }, { tab: 'Товары', add: true });
await clickElement('Провести и закрыть');await clickElement('КП00-000227', { dblclick: true });
// Always use { dblclick: true } — single click only selects the rowawait filterList('Конфетпром'); // flatten + search
await clickElement('Конфетпром ООО', { dblclick: true }); // open
await closeForm();
await unfilterList(); // restore hierarchy// Fill report filters using readable labels
await fillFields({ 'Склад': 'Основной склад' });
await clickElement('Сформировать');
await wait(5);
const report = await readSpreadsheet();
console.log('Title:', report.title);
console.log('Data rows:', report.data?.length);// Generate report
await clickElement('Сформировать');
await wait(5);
const report = await readSpreadsheet();
// Double-click cell to open drill-down (uses coordinates from readSpreadsheet)
await clickElement({ row: 0, column: 'К6' }, { dblclick: true });
// Modal dialog "Выбор поля" opens
await clickElement('Регистратор');
await clickElement('Выбрать');
await wait(10);
const drilldown = await readSpreadsheet();Some forms have multiple grids (e.g. "Входящие" and "Исходящие" tables on a single form). Without table, buttons like "Добавить" hit the first match and readTable reads the first grid — which may not be the one you need.
Step 1 — discover tables via getFormState():
const form = await getFormState();
// form.tables = [
// { name: "ДеревоБизнесПроцессов", columns: ["Полный код", "Бизнес-процесс"], rowCount: 21 },
// { name: "Входящие", label: "Входящие", columns: ["Объект", "Бизнес-процесс источник", ...], rowCount: 1 },
// { name: "Исходящие", label: "Исходящие", columns: ["Объект", "Бизнес-процесс приемник", ...], rowCount: 1 }
// ]Step 2 — use table name in any grid operation:
// Read specific table
const t = await readTable({ table: 'Исходящие' });
// Add row — fillTableRow with add:true already clicks the right "Добавить" button
await fillTableRow({ 'Объект': 'БДДС' }, { table: 'Исходящие', add: true });
// Or click buttons separately
await clickElement('Добавить', { table: 'Входящие' });
// Delete from specific table
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.
const page = await getPage();
await page.keyboard.press('F8'); // example: create new item in focused reference field| Key | Context | Action |
|---|---|---|
F8 | Reference field focused | Create new catalog item |
Shift+F4 | Any input field focused | Clear field value (auto via ''/null in fillFields/selectValue/fillTableRow) |
F4 | Reference field focused | Open selection form |
Alt+F | List/table form | Open advanced search dialog |
| Goal | Method |
|---|---|
| Post & close document | clickElement('Провести и закрыть') |
| Save & close catalog | clickElement('Записать и закрыть') |
| Close without saving | closeForm({ save: false }) |
| Close and save | closeForm({ save: true }) |
| Close (manual confirm) | closeForm() — returns confirmation if dialog appears |
{ "ok": true, "output": "...console.log output...", "elapsed": 3.2 }On error (auto-screenshot taken):
{ "ok": false, "error": "Element not found", "output": "...", "screenshot": "error-shot.png", "elapsed": 1.5 }filterList returns 0 rows or readTable is empty after filtering — the item likely doesn't exist in this database. Don't retry the same search 5 times with slight variationsnavigateLink. Couldn't find via simple search? Try advanced search with a specific field. But don't repeat the same methodstart)--no-preserve-clipboard (any command), WEB_TEST_PRESERVE_CLIPBOARD=0 env, or preserveClipboard: false in webtest.config.mjscat <<'SCRIPT' | node $RUN exec - to avoid escaping issues\u00a0 instead of regular spaces. All matching is normalized internallynavigateSection() works with any panel position (side, top) but requires "Picture and text" or "Text" display mode. Icon-only mode is not supported — API cannot read section names from icons aloneWhen the user asks to cover a 1C solution with automated regression — multi-file test suites with assertions, hooks, tags, retries, Allure/JUnit reports, multi-user process tests — switch to the test mode. See regress.md for authoring discipline, recon flow (metadata + live walkthrough via exec), per-application folder layout, ready-to-paste templates, and failure triage. Default to ad-hoc run/exec for single-script automation — test is the specialised mode for project-wide coverage.
© Nikolay-Shirokov, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 76 other files (scripts) in .claude/skills/web-test of Nikolay-Shirokov/cc-1c-skills.
Open the folder on GitHubat commit 1fa205b
Web Test next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Web Test this skillNikolay-Shirokov/cc-1c-skills | 671 | — | ~8.2k | Automated safety check: Notes | MIT | |
| Web Application Testinganthropics/skills | 180k | 51 repos | ~966 | Automated safety check: Pass | Apache-2.0 | |
| Playwright CLIsanity-io/sanity | 6.4k | 18 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Write and Verify Playwright Testsappsmithorg/appsmith | 41k | — | ~2.9k | Automated safety check: Notes | Apache-2.0 | |
| playwright-cli Browser Automationgithub/gh-aw | 5.4k | 23 repos | ~2.8k | Automated safety check: Pass | MIT | |
| Cucumber and Playwright E2E Testslanggenius/dify | 158k | — | ~682 | Automated safety check: Pass | Custom licence |
anthropics/skills
Tests local web applications with Python Playwright scripts, checking frontend behavior, capturing screenshots and reading browser console logs.
sanity-io/sanity
Automates browser interactions for web testing, form filling, screenshots, and data extraction.
appsmithorg/appsmith
Writes a Playwright end-to-end test from a prompt, runs it against a live Appsmith deployment and retries with fixes up to three times until it passes.
github/gh-aw
Drives a real browser from the command line with playwright-cli to open pages, interact, mock requests, save state and work with Playwright tests.
langgenius/dify
Guides changes and reviews of the Cucumber and Playwright end-to-end suite under `e2e/`: feature files, step definitions, support code, tags, locators and assertions.
OpenHands/OpenHands
This skill should be used to "verify OpenHands features", "test the Canvas UI like a user", "drive Agent Canvas", "check a UI change in the real app", "create or update the feature map", "run the…
Nikolay-Shirokov/cc-1c-skills
Работа с хранилищем конфигурации 1С. An agent skill from Nikolay-Shirokov/cc-1c-skills.
Nikolay-Shirokov/cc-1c-skills
Компиляция управляемой формы 1С из JSON-определения или из метаданных объекта.
Nikolay-Shirokov/cc-1c-skills
Точечное редактирование конфигурации 1С. An agent skill from Nikolay-Shirokov/cc-1c-skills.
Nikolay-Shirokov/cc-1c-skills
Правка существующей управляемой формы 1С — элементы, реквизиты, команды и свойства самой формы.
Nikolay-Shirokov/cc-1c-skills
Создать пустую конфигурацию 1С (scaffold XML-исходников). An agent skill from Nikolay-Shirokov/cc-1c-skills.
Nikolay-Shirokov/cc-1c-skills
Создать расширение конфигурации 1С (CFE) — scaffold XML-исходников.
Works with
Categories
Тестирование 1С через веб-клиент — автоматизация действий в браузере. Web Test is an agent skill from Nikolay-Shirokov/cc-1c-skills. Тестирование 1С через веб-клиент — автоматизация действий в браузере.
Web Test fits situations like: testing & QA work in your project.
Run `npx skills add Nikolay-Shirokov/cc-1c-skills --skill web-test -a claude-code`. Or copy the skill folder (.claude/skills/web-test in Nikolay-Shirokov/cc-1c-skills) into .claude/skills/web-test in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Nikolay-Shirokov/cc-1c-skills --skill web-test -a codex`. Or copy the skill folder (.claude/skills/web-test in Nikolay-Shirokov/cc-1c-skills) into .agents/skills/web-test in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Nikolay-Shirokov/cc-1c-skills --skill web-test -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/web-test, .gemini/skills/web-test, .github/skills/web-test and .opencode/skills/web-test in your project.
Going by SKILL.md and its folder, Web Test needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node, npm and npx). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Bash, Read, Write, Glob, Grep.
SKILL.md contains no URLs. Its commands use npm and npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Web Test is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 8.2k tokens (SKILL.md is roughly 33k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Web Test: Web Application Testing (anthropics/skills, 180k stars), Playwright CLI (sanity-io/sanity, 6.4k stars), Write and Verify Playwright Tests (appsmithorg/appsmith, 41k stars) and playwright-cli Browser Automation (github/gh-aw, 5.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Nikolay-Shirokov (a GitHub user) maintains it in Nikolay-Shirokov/cc-1c-skills, which has 671 GitHub stars. The repository holds 81 skills in this directory. The repository was last updated on October 5, 2026.
Source: Nikolay-Shirokov/cc-1c-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.