Logo de Rf Browser

Rf Browser

Communauté
manykarim
rf-browser

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

Présentation

Éditeurmanykarim
Dépôtrobotframework-agentskills
Nom de la compétencerf-browser
Étoiles
40
Forks
2
Fichiers inclus
11
LicenceApache-2.0
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont en simple Markdown, et non en code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • 11 fichiers inclus

    Des scripts, des modèles de documents et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par manykarim sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Rf Browser dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Collez l’URL du dossier de la compétence indiquée ci-dessous, puis confirmez.
    https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-browser
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter → Via URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

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
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Rf Browser dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Rf Browser dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, Rf Browser n’est pas lié au modèle pour lequel cette compétence a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

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.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Rf Browser ?

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

Pourquoi utiliser Rf Browser sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Rf Browser se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Rf Browser dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-browser. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Rf Browser ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Rf Browser ?

Autant que vous le souhaitez. Tant qu’un modèle prend en charge les compétences, vous pouvez utiliser Rf Browser avec lui : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Rf Browser est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par manykarim sous licence Apache-2.0. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, modèles de documents ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇