Logo von Rf Browser

Rf Browser

Community
manykarim
rf-browser

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

Übersicht

Herausgebermanykarim
Repositoryrobotframework-agentskills
Skill-Namerf-browser
Sterne
40
Forks
2
Mitgelieferte Dateien
11
LizenzApache-2.0
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • 11 mitgelieferte Dateien

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von manykarim auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Rf Browser in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-browser
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Rf Browser in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Rf Browser automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Rf Browser nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

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.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Rf Browser?

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

Warum Rf Browser in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Rf Browser besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Rf Browser in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-browser ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Rf Browser nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Rf Browser verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Rf Browser damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Rf Browser kostenlos?

Ja. Der Skill wird von manykarim auf GitHub unter der Lizenz Apache-2.0 veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇