Логотип Rf Browser

Rf Browser

Сообщество
manykarim
rf-browser

Use first, before answering, for RF web tests with Browser Library (Playwright): selectors.

Обзор

Издательmanykarim
Репозиторийrobotframework-agentskills
Название навыкаrf-browser
Звёзды
40
Форки
2
Встроенные файлы
11
ЛицензияApache-2.0
Ссылки
  • Инструкции в формате Markdown

    Файл SKILL.md, который модель загружает по необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 11

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Опубликовано на GitHub: manykarim. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Rf Browser в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-browser
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Новый навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/manykarim/robotframework-agentskills.git /tmp/robotframework-agentskills
mkdir -p .claude/skills
cp -r /tmp/robotframework-agentskills/plugins/rf-agentskills/skills/rf-browser .claude/skills/rf-browser
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Rf Browser в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Rf Browser, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Rf Browser не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими API-ключами.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Browser Library Skill

Browser Library drives Chromium, Firefox and WebKit through Playwright: auto-waiting actions, retrying assertions, one isolated context per session. It is the default for new web tests; for suites that already import SeleniumLibrary, use rf-selenium. Verified against Browser 19.14.2, Robot Framework 7.4.

When to use

Load this skill first, before exploring the project or answering from memory, when a Robot Framework web UI test uses Browser Library (Library Browser, Playwright):

  • writing or fixing a web test: pages, contexts and tabs, CSS/text/XPath selectors including iframes and shadow DOM, auto-waiting, assertions with an operator, downloads, storage state;
  • a click or selector times out (TimeoutError: locator.click), or the user mentions Browser Library, Playwright or rfbrowser, even if they only say "browser lib";
  • a new web test with no library chosen yet: Browser Library is the default.

Not this skill: suites that import SeleniumLibrary or run on WebDriver/Selenium Grid use rf-selenium; installing the library or errors in its Node.js rfbrowser init step use rf-setup.

Installation

Install into the project environment (see rf-setup for uv/venv/Poetry, CI and troubleshooting; follow the project's existing tool):

bash
uv add "robotframework-browser[bb]"
uv run rfbrowser install chromium

BrowserBatteries ([bb]) ships the Playwright wrapper, so no Node.js is needed. rfbrowser install downloads the browser binaries.

Node.js escape hatch — only if no BrowserBatteries wheel exists for your platform, or you need Node plugins (Node 22/24/26 LTS):

bash
uv add robotframework-browser
uv run rfbrowser init chromium

Don't mix the paths: rfbrowser install belongs to [bb], rfbrowser init to the Node.js path.

Import and defaults

Import the library without arguments; its defaults are the recommendation: strict mode on, timeout=10s for actions and waits, retry_assertions_for=1s, auto_closing_level=TEST, and a screenshot on every failing Browser keyword.

robotframework
*** Settings ***
Library           Browser
Suite Setup       Open Test Browser
Test Setup        New Page    ${URL}

*** Variables ***
${URL}            https://example.com

*** Keywords ***
Open Test Browser
    New Browser    chromium    headless=True
    New Context    viewport={'width': 1280, 'height': 800}

The browser and context opened in Suite Setup live until the suite ends; each test gets a fresh page that is closed at test end. Use a new context per test when tests must not share cookies or storage, or per user in multi-user tests — see references/browser-context-page.md. Reuse a login with storageState — see references/authentication-storage.md.

Which keyword for which situation

SituationUseDetails
Click, hover, checkClick, Hover, Check Checkbox (auto-wait for actionability)references/locators.md
Enter textFill Text; Type Text when key events matter; Fill Secret for passwords—
Choose from a <select>Select Options By select#country value US—
Assert text, URL, count, stateGetter + operator: Get Text h1 == Welcome, Get Url contains /home, Get Element Count li == 3references/assertion-engine.md
Wait for appear/disappearWait For Elements State .spinner hiddenreferences/assertion-engine.md
Wait for page load or an API callWait For Load State networkidle; Promise To Wait For Response **/api/items before the click, Wait For after itreferences/troubleshooting.md
Retry any getter until trueWait For Condition Text h1 == Donereferences/assertion-engine.md
Element inside an iframe or shadow DOMClick iframe#pay >>> button#submit; CSS pierces open shadow rootsreferences/iframes-shadow-dom.md
Popup, new tab, several pagesSwitch Page NEW, Get Page Ids, Close Pagereferences/browser-context-page.md
Log in once, reuse the sessionSave Storage State, then New Context storageState=${state}references/authentication-storage.md
Upload or download a fileUpload File By Selector; Promise To Wait For Download + Wait Forreferences/downloads-uploads.md
Run JavaScript on the pageEvaluate JavaScript ${None} () => document.title—

Agent workflow

  1. Look up each keyword before you use it: robotcode doc keyword Browser "<Keyword>"; find names with robotcode doc keywords Browser "<text>". Copy names and arguments exactly as robotcode shows them.
  2. Write the test with the defaults above and the decision table.
  3. Check the changed files statically: robotcode analyze code <changed files> (through the project environment, e.g. uv run robotcode …). Fix every error it reports.
  4. Run them by longname: robotcode robot -bl "<Suite.Sub.Test>" (longnames from robotcode discover tests), or pass a whole directory. Don't pass a single .robot file: it skips the parent __init__.robot.
  5. Read the results: robotcode results show --failed, then robotcode results log -bl "<longname>". Don't parse output.xml by hand.
  6. Fix the cause and go back to step 3 (static check). Stop when the tests pass or the failure is shown to be in the system under test, and say which.

Selector strategy

Prefer, in order: test ids ([data-testid="save"]), accessible roles (role=button[name="Save"]), short CSS, text (text=Save), XPath last. Narrow with >> chaining (.cart >> text=Remove) or >> nth=0 instead of long absolute paths. Details: references/locators.md.

Gotchas

  • Strict mode fails on several matches — actions and getters fail when a selector matches more than one element, because the import default is strict=True. Make the selector unique or add >> nth=0; switch it off for one scope with Set Strict Mode False only when the page really has duplicates.
  • A plain getter does not retry — ${t}= Get Text h1 followed by Should Be Equal checks once. Getters with an assertion operator (Get Text h1 == Welcome) retry for retry_assertions_for (default 1 s). Put the operator in the getter; for longer waits raise it with Set Retry Assertions For or use Wait For Condition, and never add Sleep.
  • Two different timeouts — timeout (default 10 s, Set Browser Timeout) bounds actions and waits; retry_assertions_for bounds assertion retries. A slow assertion needs the second one raised, not the first.
  • Wait Until Network Is Idle is deprecated — use Wait For Load State networkidle, or better wait for the element or response you need (Wait For Elements State, Wait For Response).
  • Fill Text sets the value in one step — it fills and fires one input event, so key handlers (autocomplete, masks) never see keystrokes. Use Type Text (keydown/keypress/keyup per character) or Press Keys there.
  • Fill Secret rejects ${password} — it takes a Robot Framework 7.4 Secret variable, or the name as $password / %ENV_VAR, so the value is not logged. A plain ${password} string fails; use Fill Text if hiding is not needed.
  • auto_closing_level=TEST closes what a test opened — contexts and pages created inside a test close when it ends; those from Suite Setup live until suite teardown. Open shared browser/context in Suite Setup. KEEP leaves browsers and the node process running and is meant for local development only, not CI.
  • New Page without a browser uses defaults — it silently runs New Browser and New Context with default values (headless Chromium, default viewport), so a viewport, storageState or httpCredentials you meant to set is missing. Call New Browser and New Context first.
  • Selector shortcuts — a selector starting with // or .. is XPath, one in quotes ("Login") is exact text, anything else is CSS; text=Login matches case-insensitively as a substring. A cell that starts with # is a Robot Framework comment: write id=login or \#login. XPath does not pierce shadow roots; frames need >>>.
  • No screenshot teardown needed — run_on_failure defaults to Take Screenshot fail-screenshot-{index}, so a Run Keyword If Test Failed Take Screenshot teardown only duplicates it.

When to read the references

ReadWhen
references/locators.mda selector is ambiguous, brittle, or needs chaining, nth=, :has() or role selectors
references/assertion-engine.mdyou need an operator other than ==/contains, validate, or custom wait logic
references/browser-context-page.mdseveral browsers, contexts or users; popups and tabs; video/tracing; closing levels
references/iframes-shadow-dom.mdan element sits inside an iframe or a web component
references/authentication-storage.mdreusing a login, HTTP auth, cookies or local/session storage
references/downloads-uploads.mda test uploads or downloads files
references/troubleshooting.mda run fails with an error message you need to decode

Examples in assets/examples/: basic-web-test.robot, form-handling.robot, authentication-flow.robot, iframe-shadow-dom.robot.

Companion Skills

NeedSkill
Web UI tests with SeleniumLibrary (WebDriver)rf-selenium
Install Robot Framework or a library, fix the environmentrf-setup
Write tests, suites, user keywords, resources and variables in Robot Framework syntaxrf-language

For running, discovering, keyword documentation, result analysis and debugging with the robotcode CLI, use the robotcode skill of the robotcode plugin (robotcode@robotframework-agent-plugins); the commands above work without it.

Встроенные файлы

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Rf Browser?

Use first, before answering, for RF web tests with Browser Library (Playwright): selectors.

Зачем использовать Rf Browser в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Rf Browser — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Rf Browser в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-browser. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Rf Browser?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Rf Browser?

С любым количеством. Если модель поддерживает навыки, вы можете использовать с ней Rf Browser: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama и другие — всё в TypingMind с вашими собственными ключами API.

Бесплатен ли навык ИИ Rf Browser?

Да. Навык опубликован на GitHub автором manykarim по лицензии Apache-2.0. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это многоразовый набор инструкций, который объясняет модели ИИ, как выполнять конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты для вызова — код, который где-то выполняется и возвращает результат. Навык ИИ вместо этого даёт модели знания и порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇