Logo di Rf Appium

Rf Appium

Community
manykarim
rf-appium

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

Panoramica

Autoremanykarim
Repositoryrobotframework-agentskills
Nome della skillrf-appium
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 Appium 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-appium
  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-appium .claude/skills/rf-appium
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Rf Appium 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 Appium 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 Appium 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à.

AppiumLibrary Skill

AppiumLibrary drives native, hybrid and mobile-web apps on Android and iOS through an Appium 2+ server. Desktop apps belong to rf-platynui; desktop browsers to rf-browser or rf-selenium. Verified against AppiumLibrary 3.2.1, Robot Framework 7.4.

When to use

Load this skill first, before exploring the project or answering from memory, when a Robot Framework test drives a mobile app with AppiumLibrary (Library AppiumLibrary) on Android or iOS:

  • writing or fixing a mobile test: Open Application capabilities (UiAutomator2, XCUITest), locators such as accessibility_id, waits, gestures and scrolling, the on-screen keyboard, WEBVIEW contexts in hybrid apps;
  • an element cannot be located on a device, or the user mentions Appium, an .apk/.ipa, an emulator or a simulator, even if they only say "our app" or "mobile test".

Not this skill: native desktop apps use rf-platynui; desktop browsers use rf-browser or rf-selenium; installing the Appium server and drivers 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-appiumlibrary

The Appium server and platform drivers live outside the Python environment and are installed with npm (requires Node.js):

bash
npm install -g appium
appium driver install uiautomator2    # Android
appium driver install xcuitest        # iOS

Android SDK/JDK and Xcode prerequisites: see rf-setup.

Import and defaults

Start the server (appium, default http://127.0.0.1:4723, no /wd/hub base path) before the suite. Default: one session per suite, Android, UiAutomator2, W3C capabilities with the appium: prefix written out:

robotframework
*** Settings ***
Library           AppiumLibrary    timeout=15s
Suite Setup       Open Android App
Suite Teardown    Close All Applications

*** Variables ***
${APPIUM_URL}    http://127.0.0.1:4723

*** Keywords ***
Open Android App
    Open Application    ${APPIUM_URL}
    ...    platformName=Android
    ...    appium:automationName=UiAutomator2
    ...    appium:deviceName=emulator-5554
    ...    appium:app=${CURDIR}/app.apk
    ...    appium:autoGrantPermissions=${True}

timeout=15s because the library default (5 s) is short for emulators; it drives every Wait Until … keyword. run_on_failure already captures a screenshot. For iOS (XCUITest), an installed app (appPackage/bundleId), mobile browsers or cloud grids, use the capability sets in references/capabilities.md.

Which keyword for which situation

SituationUseDetails
Find an elementaccessibility_id=…, then id=…, android=… / predicate=… / chain=…, XPath lastreferences/locators-mobile.md
Wait for a screen or elementWait Until Page Contains Element, Wait Until Element Is Visible—
Assert visible / enabled / goneExpect Element <locator> visible (also not visible, enabled, disabled); text: Expect Text—
Assert text of an elementElement Text Should Be, Element Should Contain Text—
Type, clear, hide keyboardInput Text, Clear Text, Hide Keyboard—
Tap, long press, double tapTap <locator> duration=2s, Tap <locator> count=2references/gestures-touch.md
Scroll or swipeScroll Down (Android), Swipe By Percent, Swipe start_x=…references/gestures-touch.md
Pinch, zoom, other gesturesExecute Script mobile: pinchOpenGesture elementId=…references/gestures-touch.md
Hybrid app web contentGet Contexts, Switch To Contextreferences/platform-specific.md
Android keys and activities, iOS alertsPress Keycode, Start Activity, Click Alert Buttonreferences/platform-specific.md
Inspect the screen for locatorsLog Source, Get Sourcereferences/troubleshooting.md

Agent workflow

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

Gotchas

  • Actions don't wait — Click Element, Input Text and Get Text look the element up once and fail with "did not match any elements" if the screen isn't there yet, because only the Wait Until … keywords and Expect Element poll. Put Wait Until Page Contains Element before the first action on a new screen; no Sleep.

  • Element Should Be Visible/Enabled/Disabled and Text Should Be Visible are deprecated — libdoc marks them "Use Expect Element". Write Expect Element <locator> visible or Expect Text <text> visible; both retry for timeout=5s by default (their own argument, not the import timeout).

  • Removed keywords models still write — Long Press, Zoom, Quit Application and the others below no longer exist in AppiumLibrary 3.2.1 and fail with "No keyword with name". Use the replacements:

    RemovedUse
    Long PressTap <locator> duration=2s
    Click A PointTap With Positions 500ms ${{ (x, y) }}
    Zoom / PinchExecute Script with mobile: pinchOpenGesture / pinchCloseGesture (Android), mobile: pinch (iOS)
    Quit Application / Reset ApplicationClose Application (then Open Application)
    Background AppBackground Application
    Get Window SizeGet Window Width / Get Window Height
  • Durations need units — Swipe and Tap With Positions read a bare number as milliseconds (and warn that bare numbers are going away), while Tap duration=2 means two seconds. Write duration=500ms or duration=1s. Swipe arguments are keyword-only: Swipe start_x=500 start_y=1500 end_x=500 end_y=400 duration=500ms. Tap With Positions takes the duration first: Tap With Positions 300ms ${{ (500, 800) }}.

  • Locator prefixes — without a prefix the text is an id (XPath only if it starts with //), and any unknown name= style prefix fails with "prefix … is not supported". iOS predicate strings use predicate=, class chains chain=; the ios= strategy is the retired UI Automation lookup and fails with the current Appium Python client.

  • Capabilities — the Appium Python client adds appium: to every name that is not W3C-standard and has no :, so automationName= works, but vendor capabilities keep their own prefix (bstack:options=, sauce:options=). Writing appium: yourself keeps logs and cloud docs aligned.

  • Hybrid context sticks — after Switch To Context WEBVIEW_… every locator is a web locator (css=, xpath=); native locators fail until Switch To Context NATIVE_APP.

  • Sessions leak — a failed test leaves the app session open; close it with Close All Applications in Suite Teardown (or Close Application in Test Teardown for per-test sessions).

When to read the references

ReadWhen
references/capabilities.mdiOS, installed apps, mobile browsers, cloud grids, reset and timeout capabilities
references/locators-mobile.mdChoosing or debugging a locator (UiAutomator, predicate, class chain, XPath)
references/gestures-touch.mdScrolling to an element, swipes, long press, pinch/zoom, drag and drop
references/platform-specific.mdAndroid keys, activities, permissions, iOS alerts, pickers, hybrid apps
references/troubleshooting.mdAn error message from the server, session creation, a device or a locator

Examples in assets/examples/: android-basic.robot, ios-basic.robot, gestures-example.robot, hybrid-app.robot.

Companion Skills

NeedSkill
Native desktop tests with PlatynUIrf-platynui
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 Appium?

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

Perché usare Rf Appium su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Rf Appium è 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 Appium 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-appium. 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 Appium?

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 Appium?

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

La skill IA Rf Appium è 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 👇