Logo di Rf Selenium

Rf Selenium

Community
manykarim
rf-selenium

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

Panoramica

Autoremanykarim
Repositoryrobotframework-agentskills
Nome della skillrf-selenium
Stelle
40
Fork
2
File inclusi
9
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 9 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da manykarim su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Rf Selenium in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-selenium
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Rf Selenium in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Rf Selenium non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Rf Selenium non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Rf Selenium?

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

Perché usare Rf Selenium su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Rf Selenium è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Rf Selenium in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-selenium. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Rf Selenium?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Rf Selenium?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Rf Selenium: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Rf Selenium è gratuita?

Sì. È pubblicata su GitHub da manykarim con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇