AI студия Владимира Ломтева
УСЛУГИПРОЕКТЫСТАТЬИБАЗА ЗНАНИЙМаркетплейсПроверить IPОбучениеПолезные сервисы

Оставьте заявку,
чтобы обсудить проект

Напишите ваш вопрос, не забудьте указать телефон. Мы перезвоним и все расскажем.

Контакты

Москва

Работаем по всей России
и миру (онлайн)

+7 (999) 760-24-41

Ежедневно с 9:00 до 21:00

v.lomtev@airassvet.ru

По вопросам сотрудничества

TelegramWhatsApp

Есть предложение?

Напишите нам в мессенджеры

© 2025 AI студия Владимира Ломтева

Политика конфиденциальностиУсловия использованияСогласие на обработку ПДн|ИНН 623412173261
    Playwright Cli — Скилл для ИИ-агентов | AI Рассвет

    Playwright Cli

    Automate browser interactions, test web pages and work with Playwright tests.

    Скиллы для разработки#GitHub#screenci/screenci#skills.sh
    Скачивания
    3
    В избранном
    0
    Комментарии
    0
    Просмотры
    2

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add screenci/screenci --skill playwright-cli
    Скачать ZIP
    Версия
    1.0.0+8b4a2cb2116f
    Автор
    Владимир Ломтев
    Репозиторий
    screenci/screenci
    GitHub: screenci/screenci

    Как установить

    1. 1Скопируйте команду из блока установки.
    2. 2Запустите её в терминале из каталога проекта.

    Документация

    Browser Automation with playwright-cli

    When Inspecting Pages For ScreenCI

    • Simple flow first: npx screenci explore <url> --click "<name>" opens the page, clicks through, and prints the snapshot inline in one call. Use playwright-cli only when you need more steps than that.

    • Run npx playwright-cli ... from the screenci/ directory: it is a local devDependency there.

    • Never write a Playwright script of your own. It starts signed out, uses a different browser, and finds selectors the recording will never see.

    • If the app needs a sign-in, load the session ScreenCI already saved:

      playwright-cli open
      playwright-cli state-load screenci/.screenci/auth/default.json
      playwright-cli goto https://app.example.com
      

      When that file does not exist, run npx screenci login, have the person sign in in the browser it opens, then npx screenci login --wait, and load it. Never type the person's credentials into this browser, and never save state back over that file (state-save would overwrite the real session).

    • After the first navigation and snapshot, check whether a cookie consent or cookie policy banner appeared. Identify the accept action the script should use inside its initial hide() block, preferably a stable locator such as getByRole('button', { name: /accept|accept all|allow all|agree|ok/i }). Prefer accept/allow over dismiss-only or settings actions.

    • This browser is the installed Chrome. The recorder uses bundled Chromium unless screenci.config.ts sets channel: 'chrome' in use, so a step that works here but fails in npx screenci test points at the browser, not the selector.

    Snapshots

    Each command prints the page URL, title, and a snapshot with element refs (e15). Prefer output you can read inline: if your version supports the global --raw option, playwright-cli --raw snapshot prints only the snapshot. Otherwise the output links a .playwright-cli/*.yml file; read it only when the inline summary is not enough.

    playwright-cli snapshot            # whole page
    playwright-cli snapshot e34        # one element
    playwright-cli snapshot --depth=4  # shallower, cheaper
    

    Core commands

    playwright-cli open [url]
    playwright-cli goto https://example.com
    playwright-cli click e3
    playwright-cli fill e5 "user@example.com"
    playwright-cli type "search query"
    playwright-cli press Enter
    playwright-cli hover e4
    playwright-cli select e9 "option-value"
    playwright-cli check e12
    playwright-cli go-back
    playwright-cli reload
    playwright-cli eval "el => el.getAttribute('data-testid')" e5
    playwright-cli close
    

    Targets can also be CSS selectors or Playwright locators:

    playwright-cli click "getByRole('button', { name: 'Submit' })"
    playwright-cli click "getByTestId('submit-button')"
    

    Named sessions: playwright-cli -s=mysession open example.com, then playwright-cli list / playwright-cli close-all.

    Installation

    If npx --no-install playwright-cli --version fails, install it with npm install -g @playwright/cli@latest.

    Требования и возможности

    Источник пакета
    https://github.com/screenci/screenci/tree/8b4a2cb2116f1add9ef632a3b42b2880a0d4e5e3/skills/playwright-cli

    Файлы версии

    ПутьРазмерSHA256
    SKILL.md3673d6a246e858176001...

    Частые вопросы

    Как установить Playwright Cli?
    Используйте команду npx skills add screenci/screenci --skill playwright-cli или скачайте ZIP-архив.
    Можно ли скачать Playwright Cli бесплатно?
    Да, опубликованную версию можно скачать из маркетплейса бесплатно.

    Похожие инструменты

    Смотреть все
    2ГИС: Статическая карта 2ГИССформировать PNG-карту с точками, линиями или полигонами.2ГИС: Пешеходный маршрут 2ГИСПостроить пешеходный маршрут между точками.2ГИС: Обратное геокодирование 2ГИСНайти адрес и объекты рядом с заданными координатами.2ГИС: Карточка организации 2ГИСПолучить подробные данные объекта по идентификатору.
    Комментарии

    Войдите, чтобы оставить комментарий.

    Комментариев пока нет.

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add screenci/screenci --skill playwright-cli
    Скачать ZIP
    Версия
    1.0.0+8b4a2cb2116f
    Автор
    Владимир Ломтев
    Репозиторий
    screenci/screenci
    GitHub: screenci/screenci