Logo van Rf Selenium

Rf Selenium

Community
manykarim
rf-selenium

Use first, before answering, for RF web tests with SeleniumLibrary. Not installs/drivers: rf-setup.

Overzicht

Uitgevermanykarim
Repositoryrobotframework-agentskills
Skillnaamrf-selenium
Sterren
40
Forks
2
Meegeleverde bestanden
9
LicentieApache-2.0
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • 9 meegeleverde bestanden

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. Bestanden zijn alleen-lezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door manykarim op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Rf Selenium in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-selenium
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die 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-selenium .claude/skills/rf-selenium
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Rf Selenium in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Rf Selenium automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Rf Selenium niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

SeleniumLibrary Skill

Web UI tests through Selenium WebDriver. Unlike Browser Library, element keywords do not wait: every dynamic step needs an explicit wait. Use this skill for suites that already import SeleniumLibrary or need Selenium Grid; for new web tests with no library chosen, use rf-browser. Verified against SeleniumLibrary 6.8.0, 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 SeleniumLibrary (Library SeleniumLibrary, Selenium WebDriver):

  • writing or fixing a SeleniumLibrary test: browser options, id:/css:/xpath: locators, explicit waits, hover menus, frames, windows, alerts, JavaScript;
  • a WebDriver exception in a robot run (element not found, click intercepted, stale element), or the user mentions SeleniumLibrary, WebDriver, chromedriver or Selenium Grid.

Not this skill: Browser Library/Playwright suites, or new web tests with no library chosen, use rf-browser; installing SeleniumLibrary or a driver uses 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-seleniumlibrary

A real browser (Chrome, Firefox, Edge) must be installed; Selenium Manager (bundled with Selenium ≥ 4.6) fetches the matching driver on first use. No driver downloads or PATH setup. Offline/air-gapped machines: see rf-setup.

Import and defaults

robotframework
*** Settings ***
Library           SeleniumLibrary    timeout=10s    implicit_wait=0s
Suite Setup       Open Browser    ${BASE_URL}    headlesschrome
Suite Teardown    Close All Browsers
  • timeout=10s raises the 5 s default of the Wait Until … and alert keywords, because CI pages load slower than local ones.
  • implicit_wait=0s (the default) keeps element lookups fast and explicit; waits are written as Wait Until … steps.
  • run_on_failure stays at its default, Capture Page Screenshot, so every failing SeleniumLibrary keyword leaves a screenshot in the log.
  • Open Browser with headlesschrome (or chrome locally) lets Selenium Manager resolve the driver.

Use options= (for example options=add_argument("--window-size=1920,1080")), remote_url= for Selenium Grid, or Create Webdriver when you need browser flags, a grid or a custom driver service — see references/browser-setup.md.

Which keyword for which situation

SituationUseDetails
Click, type, selectClick Element, Input Text, Input Password, Select From List By Label — after a wait if the element appears latereferences/locators.md
Element appears after navigation or AJAXWait Until Element Is Visible, Wait Until Page Contains Elementreferences/waiting-strategies.md
Spinner or dialog must go awayWait Until Element Is Not Visiblereferences/waiting-strategies.md
Button becomes clickableWait Until Element Is Enabledreferences/waiting-strategies.md
Assert text that loads lateWait Until Element Contains, Wait Until Page Containsreferences/waiting-strategies.md
Assert a state that is already settledElement Text Should Be, Element Should Be Visible, Title Should Be—
Wait for a count or any custom conditionWait Until Keyword Succeeds + Get Element Countreferences/waiting-strategies.md
Element inside an iframeSelect Frame … Unselect Framereferences/frames-windows.md
Popup window or new tabSwitch Window NEW, back with Switch Window MAINreferences/frames-windows.md
JavaScript alert or confirmHandle Alertreferences/frames-windows.md
File uploadChoose File on the <input type="file">—
Something no keyword coversExecute Javascript with ARGUMENTSreferences/javascript-execution.md
Extra evidence for a failureCapture Element Screenshot, Log Sourcereferences/troubleshooting.md

Keyword names and arguments: robotcode doc keywords SeleniumLibrary "wait until" lists them; there is no keyword catalog in this skill.

Agent workflow

  1. Look up each keyword before you use it: robotcode doc keyword SeleniumLibrary "<Keyword>"; find names with robotcode doc keywords SeleniumLibrary "<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.

Locator rules

  • A locator without a prefix matches the id or name attribute (some keywords add more, e.g. Click Link also matches link text and href).
  • A locator starting with // (or (//) is XPath; everything else needs an explicit strategy: css:, xpath:, link:, partial link:, class:, tag:, data:.
  • Prefer id:/css: with stable attributes (css:[data-testid="save"]); XPath for text matches only: xpath://button[normalize-space()="Save"].
  • Keep locators in variables, never stored WebElements (see Gotchas).

Gotchas

  • Element keywords do not wait — Click Element, Input Text and Get Text fail at once when the element is not there yet, because implicit_wait defaults to 0 and the import timeout applies only to Wait … and alert keywords. Put a Wait Until Element Is Visible (or … Is Enabled) before acting on anything that loads late.
  • Assertions check once — Page Should Contain, Element Should Be Visible and Element Text Should Be do not retry. After navigation or AJAX use Wait Until Page Contains, Wait Until Element Is Visible or Wait Until Element Contains.
  • Page Should Contain leaves the frame — it searches all frames and resets the selection to the main frame, because of how it walks frames. Call Select Frame again before the next locator inside the iframe.
  • Select Frame is sticky — every later locator is resolved inside that frame until Unselect Frame, so a main-page element then fails with "element not found", not with a frame error. Pair each Select Frame with Unselect Frame.
  • Headless browser names have no underscore — Open Browser accepts headlesschrome and headlessfirefox; headless_chrome fails with "is not a supported browser", and there is no headless Edge name. For headless Edge use edge with options=add_argument("--headless=new").
  • Open Browser defaults to Firefox — the browser argument defaults to firefox, so a call without it fails on machines that only have Chrome. Always pass the browser (e.g. from a ${BROWSER} variable).
  • Implicit plus explicit waits — setting implicit_wait (or Set Selenium Implicit Wait) makes every lookup block for up to that time, also inside the polling loop of Wait Until … keywords, so waits overshoot their timeout and absence checks such as Wait Until Page Does Not Contain Element slow down. Keep implicit_wait=0s and use explicit waits.
  • Stale WebElements — a ${el}= Get WebElement … stored before the page re-renders raises StaleElementReferenceException later, because Selenium element references die with the DOM node. Pass locator strings and look elements up again.
  • Covered elements — Click Element on an element under an overlay or cookie banner fails with ElementClickInterceptedException. Wait for the overlay with Wait Until Element Is Not Visible, or use Scroll Element Into View; a JavaScript click is the last resort because it skips the user-visible check.
  • Screenshot teardowns are redundant — run_on_failure already runs Capture Page Screenshot when a SeleniumLibrary keyword fails; a Capture Page Screenshot teardown only duplicates it. Change the behaviour with the run_on_failure import argument or Register Keyword To Run On Failure.

When to read the references

ReadWhen
references/browser-setup.mdyou need browser options, window size, Selenium Grid (remote_url), Create Webdriver, or CI flags
references/waiting-strategies.mda test is flaky, you need a count or custom wait, or you tune timeouts
references/locators.mda locator does not match, or you need chaining, Add Location Strategy or WebElement arguments
references/frames-windows.mdthe page uses iframes, popups, new tabs or alerts
references/javascript-execution.mdno keyword does what you need and you want Execute Javascript / Execute Async Javascript
references/troubleshooting.mdyou have an error message (stale element, click intercepted, session not created, no such frame) or need screenshots and page source

Examples in assets/examples/: basic-web-test.robot (navigation, forms, assertions), wait-patterns.robot (explicit waits, count wait), multi-window.robot (windows, frames, alerts).

Companion Skills

NeedSkill
Web UI tests with Browser Library (Playwright)rf-browser
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.

Meegeleverde bestanden

Het model leest deze bestanden wanneer nodig terwijl de skill geladen is. Ze worden beschikbaar gesteld als leesbare bestanden en worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Rf Selenium?

Use first, before answering, for RF web tests with SeleniumLibrary. Not installs/drivers: rf-setup.

Waarom Rf Selenium gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Rf Selenium bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Rf Selenium in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-selenium. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Rf Selenium gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Rf Selenium gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Rf Selenium ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Rf Selenium gratis?

Ja. Deze skill is door manykarim op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇